@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface Model
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<?>[] |
adaptables |
Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class<?>[] |
adapters |
boolean |
cache |
java.lang.String |
condition |
DefaultInjectionStrategy |
defaultInjectionStrategy |
java.lang.String[] |
resourceType |
ValidationStrategy |
validation |
public abstract java.lang.Class<?>[] adaptables
public abstract java.lang.Class<?>[] adapters
public abstract DefaultInjectionStrategy defaultInjectionStrategy
public abstract java.lang.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 © 2010 - 2020 Adobe. All Rights Reserved