Annotation Type I18N
Injects I18n text into a field, based on the underlying resource in case of resource adaptation, or request.
Note: not supported by the javax.Inject annotation because of performance reasons. Only direct annotation is supported.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanForces retrieving the i18n from the underlying resource, even if a request is being adapted.org.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.booleanif true only the path is used to determine the language.Represents the i18nKey -
Field Summary
Fields
-
Field Details
-
SOURCE
Source value used for this annotation.- See Also:
-
Source- Constant Field Values
-
-
Element Details
-
localeIgnoreContent
boolean localeIgnoreContentif true only the path is used to determine the language.- See Also:
-
Page.getLanguage(boolean)
- Default:
- false
-
forceRetrievalFromUnderlyingResource
boolean forceRetrievalFromUnderlyingResourceForces retrieving the i18n from the underlying resource, even if a request is being adapted.- Returns:
- Default:
- false
-
value
String valueRepresents the i18nKey- Returns:
- 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
-