Class SelfInjector
java.lang.Object
org.apache.sling.models.impl.injectors.SelfInjector
- All Implemented Interfaces:
org.apache.sling.models.spi.AcceptsNullName
,org.apache.sling.models.spi.Injector
,org.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactory
public class SelfInjector
extends Object
implements org.apache.sling.models.spi.Injector, org.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactory, org.apache.sling.models.spi.AcceptsNullName
Injects the adaptable object itself.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor2
@NotNull String
getName()
getValue
(@NotNull Object adaptable, String name, @NotNull Type type, @NotNull AnnotatedElement element, @NotNull org.apache.sling.models.spi.DisposalCallbackRegistry callbackRegistry)
-
Constructor Details
-
SelfInjector
public SelfInjector()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceorg.apache.sling.models.spi.Injector
-
getValue
public Object getValue(@NotNull @NotNull Object adaptable, String name, @NotNull @NotNull Type type, @NotNull @NotNull AnnotatedElement element, @NotNull @NotNull org.apache.sling.models.spi.DisposalCallbackRegistry callbackRegistry) - Specified by:
getValue
in interfaceorg.apache.sling.models.spi.Injector
-
createAnnotationProcessor
public org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor2 createAnnotationProcessor(AnnotatedElement element) - Specified by:
createAnnotationProcessor
in interfaceorg.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactory
-