@Service
@Property(name="service.ranking",
intValue=2500)
public class ResourcePathInjector
extends Object
implements org.apache.sling.models.spi.Injector, org.apache.sling.models.spi.AcceptsNullName, org.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactory
| Constructor and Description |
|---|
ResourcePathInjector() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor2 |
createAnnotationProcessor(AnnotatedElement element) |
@NotNull String |
getName() |
protected org.apache.sling.api.resource.ResourceResolver |
getResourceResolver(Object adaptable) |
Object |
getValue(@NotNull Object adaptable,
String name,
@NotNull Type declaredType,
@NotNull AnnotatedElement element,
@NotNull org.apache.sling.models.spi.DisposalCallbackRegistry callbackRegistry) |
protected org.apache.sling.api.resource.ValueMap |
getValueMap(Object adaptable) |
protected boolean |
isDeclaredTypeCollection(Type declaredType) |
@NotNull public @NotNull String getName()
getName in interface org.apache.sling.models.spi.Injectorpublic Object getValue(@NotNull @NotNull Object adaptable, String name, @NotNull @NotNull Type declaredType, @NotNull @NotNull AnnotatedElement element, @NotNull @NotNull org.apache.sling.models.spi.DisposalCallbackRegistry callbackRegistry)
getValue in interface org.apache.sling.models.spi.Injectorpublic org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor2 createAnnotationProcessor(AnnotatedElement element)
createAnnotationProcessor in interface org.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactoryprotected 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–2018 The Apache Software Foundation. All rights reserved.