Class OSGiServiceInjector
- java.lang.Object
-
- org.apache.sling.models.impl.injectors.OSGiServiceInjector
-
- All Implemented Interfaces:
org.apache.sling.models.spi.AcceptsNullName
,org.apache.sling.models.spi.Injector
,org.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactory
public class OSGiServiceInjector extends Object implements org.apache.sling.models.spi.Injector, org.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactory, org.apache.sling.models.spi.AcceptsNullName
-
-
Constructor Summary
Constructors Constructor Description OSGiServiceInjector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(org.osgi.framework.BundleContext ctx)
org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor2
createAnnotationProcessor(AnnotatedElement element)
@NotNull String
getName()
Object
getValue(@NotNull Object adaptable, String name, @NotNull Type type, @NotNull AnnotatedElement element, @NotNull org.apache.sling.models.spi.DisposalCallbackRegistry callbackRegistry)
Object
getValue(@NotNull Object adaptable, String name, @NotNull Type type, @NotNull AnnotatedElement element, @NotNull org.apache.sling.models.spi.DisposalCallbackRegistry callbackRegistry, @Nullable org.osgi.framework.BundleContext modelContext)
-
-
-
Method Detail
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getName
in interfaceorg.apache.sling.models.spi.Injector
-
activate
public void activate(org.osgi.framework.BundleContext ctx)
-
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
-
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, @Nullable @Nullable org.osgi.framework.BundleContext modelContext)
- Parameters:
adaptable
- Adaptablename
- Nametype
- Typeelement
- ElementcallbackRegistry
- Callback registrymodelContext
- Model context- Returns:
- Object
-
createAnnotationProcessor
public org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor2 createAnnotationProcessor(AnnotatedElement element)
- Specified by:
createAnnotationProcessor
in interfaceorg.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactory
-
-