@Target(value={METHOD,FIELD,PARAMETER}) @Retention(value=RUNTIME) @InjectAnnotation public @interface SlingObject
The injection is class-based.
| Class | Description | Request | ResourceResolver | Resource |
|---|---|---|---|---|
| ResourceResolver | Resource resolver | X | X | X |
| Resource | Resource | X | X | |
| SlingHttpServletRequest | Sling request | X | ||
| SlingHttpServletResponse | Sling response | X | ||
| SlingScriptHelper | Sling script helper | X |
| Modifier and Type | Optional Element and Description |
|---|---|
InjectionStrategy |
injectionStrategy
|
boolean |
optional
Deprecated.
Use
injectionStrategy() instead |
@Deprecated public abstract boolean optional
injectionStrategy() insteadpublic abstract 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 © 2017 The Apache Software Foundation. All rights reserved.