@Target(value={METHOD,FIELD,PARAMETER}) @Retention(value=RUNTIME) @InjectAnnotation public @interface AemObject
the following objects can be injected:
| Modifier and Type | Fields and Description |
|---|---|
static String |
SOURCE
Source value used for this annotation.
|
| Modifier and Type | Optional Element and Description |
|---|---|
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. |
public static final String SOURCE
Sourcepublic 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–2020 Adobe. All rights reserved.