@Target(value={METHOD,FIELD,PARAMETER}) @Retention(value=RUNTIME) @InjectAnnotation public @interface I18N
| Modifier and Type | Fields and Description |
|---|---|
static String |
SOURCE
Source value used for this annotation.
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
forceRetrievalFromUnderlyingResource
Forces retrieving the i18n from the underlying resource, even if a request is being adapted.
|
org.apache.sling.models.annotations.injectorspecific.InjectionStrategy |
injectionStrategy
if set to REQUIRED injection is mandatory, if set to OPTIONAL injection is optional, in case of DEFAULT
the standard annotations (
Optional, Required) are used. |
boolean |
localeIgnoreContent
if true only the path is used to determine the language.
|
String |
value
Represents the i18nKey
|
public static final String SOURCE
Sourcepublic abstract boolean localeIgnoreContent
Page.getLanguage(boolean)public abstract boolean forceRetrievalFromUnderlyingResource
public abstract String value
public abstract org.apache.sling.models.annotations.injectorspecific.InjectionStrategy injectionStrategy
Optional, Required) are used.
If even those are not available the default injection strategy defined on the Model applies.
Default value = DEFAULT.Copyright © 2013–2021 Adobe. All rights reserved.