Constructor and Description |
---|
EnumValueInjector() |
Modifier and Type | Method and Description |
---|---|
org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor2 |
createAnnotationProcessor(AnnotatedElement element) |
String |
getName() |
Object |
getValue(Object adaptable,
String name,
Type type,
AnnotatedElement element,
org.apache.sling.models.spi.DisposalCallbackRegistry callbackRegistry)
Attempts to produce a value that can be further injected by Sling into the given adaptable
|
public static final String NAME
public org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor2 createAnnotationProcessor(AnnotatedElement element)
createAnnotationProcessor
in interface org.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactory
@CheckForNull public final Object getValue(@Nonnull Object adaptable, String name, @Nonnull Type type, @Nonnull AnnotatedElement element, @Nonnull org.apache.sling.models.spi.DisposalCallbackRegistry callbackRegistry)
getValue
in interface org.apache.sling.models.spi.Injector
adaptable
- A SlingHttpServletRequest
or a Resource
instancename
- Name of the Java class member to inject the value intotype
- Type of receiving Java class memberelement
- AnnotatedElement
instance that facades the Java class member and allows to
retrieve annotationscallbackRegistry
- DisposalCallbackRegistry
objectCopyright © 2024 Exadel, Inc.. All rights reserved.