@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface Model
Modifier and Type | Required Element and Description |
---|---|
Class<?>[] |
adaptables |
Modifier and Type | Optional Element and Description |
---|---|
Class<?>[] |
adapters |
String |
condition |
DefaultInjectionStrategy |
defaultInjectionStrategy |
ValidationStrategy |
validation |
public abstract Class<?>[] adaptables
public abstract Class<?>[] adapters
public abstract DefaultInjectionStrategy defaultInjectionStrategy
public abstract String condition
public abstract ValidationStrategy validation
ValidationStrategy.DISABLED
in case the model should not be validated through Sling Validation (default),
ValidationStrategy.REQUIRED
in case the model should be validated and if no appropriate Sling Validation Model exists it is considered invalid or
ValidationStrategy.OPTIONAL
in case the model should be validated only in case an appropriate Sling Validation Model is found.Copyright © 2015 The Apache Software Foundation. All rights reserved.