@Target(value={METHOD,FIELD,PARAMETER}) @Retention(value=RUNTIME) @InjectAnnotation public @interface TagInject
This injector will look to the value of the property whose name is that of the annotated element and treating it as an absolute or relative path, will get the Resource identified by the path (starting from the current resource when the path is relative).
This injector will only work if you are adapting from a Resource or SlingHttpServletRequest.
This injector will respect the value of the Named
annotation.
Modifier and Type | Optional Element and Description |
---|---|
boolean |
inherit |
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 NAME
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 © 2019 ICF Next. All rights reserved.