@Service @Property(name="service.ranking", intValue=2000) public class ValueMapInjector extends Object implements org.apache.sling.models.spi.Injector, org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessorFactory, org.apache.sling.models.spi.ValuePreparer
Constructor and Description |
---|
ValueMapInjector() |
Modifier and Type | Method and Description |
---|---|
org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor |
createAnnotationProcessor(Object adaptable,
AnnotatedElement element) |
String |
getName() |
protected org.apache.sling.api.resource.ResourceResolver |
getResourceResolver(Object adaptable) |
Object |
getValue(Object adaptable,
String name,
Type type,
AnnotatedElement element,
org.apache.sling.models.spi.DisposalCallbackRegistry callbackRegistry) |
protected org.apache.sling.api.resource.ValueMap |
getValueMap(Object adaptable) |
protected boolean |
isDeclaredTypeCollection(Type declaredType) |
Object |
prepareValue(Object adaptable) |
@Nonnull public String getName()
getName
in interface org.apache.sling.models.spi.Injector
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 Object prepareValue(Object adaptable)
prepareValue
in interface org.apache.sling.models.spi.ValuePreparer
public org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor createAnnotationProcessor(Object adaptable, AnnotatedElement element)
createAnnotationProcessor
in interface org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessorFactory
protected org.apache.sling.api.resource.ResourceResolver getResourceResolver(Object adaptable)
protected org.apache.sling.api.resource.ValueMap getValueMap(Object adaptable)
protected boolean isDeclaredTypeCollection(Type declaredType)
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.