Annotation Type PageProperty
@Target({METHOD,FIELD,PARAMETER})
@Retention(RUNTIME)
@InjectAnnotation
public @interface PageProperty
Injects a page property.
Note: not supported by the javax.Inject annotation because of performance reasons. Only direct annotation is supported.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionorg.apache.sling.models.annotations.injectorspecific.InjectionStrategyif set to REQUIRED injection is mandatory, if set to OPTIONAL injection is optional, in case of DEFAULT the standard annotations (Optional,Required) are used.Specifies the name of the value from the value map to take.
-
Element Details
-
value
String valueSpecifies the name of the value from the value map to take. If empty, then the name is derived from the method or field.- Default:
- ""
-
injectionStrategy
org.apache.sling.models.annotations.injectorspecific.InjectionStrategy injectionStrategyif set to REQUIRED injection is mandatory, if set to OPTIONAL injection is optional, in case of DEFAULT the standard annotations (Optional,Required) are used. If even those are not available the default injection strategy defined on theModelapplies. Default value = DEFAULT.- Default:
- DEFAULT
-