@Service @Property(name="service.ranking", intValue=5000) 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 and Description |
---|
OSGiServiceInjector() |
Modifier and Type | Method and Description |
---|---|
void |
activate(org.osgi.service.component.ComponentContext ctx) |
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) |
@Nonnull public String getName()
getName
in interface org.apache.sling.models.spi.Injector
@Activate public void activate(org.osgi.service.component.ComponentContext ctx)
public 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
public org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor2 createAnnotationProcessor(AnnotatedElement element)
createAnnotationProcessor
in interface org.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactory
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.