@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 |
boolean |
cache |
String |
condition |
DefaultInjectionStrategy |
defaultInjectionStrategy |
String[] |
resourceType |
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.public abstract String[] resourceType
Copyright © 2017 The Apache Software Foundation. All rights reserved.