public class InjectableField extends Object
| Constructor and Description |
|---|
InjectableField(Field field,
org.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactory[] processorFactories,
org.apache.sling.models.annotations.DefaultInjectionStrategy defaultInjectionStrategy) |
| Modifier and Type | Method and Description |
|---|---|
AnnotatedElement |
getAnnotatedElement() |
Object |
getDefaultValue() |
Type |
getFieldGenericType() |
Class<?> |
getFieldType() |
String |
getName() |
String |
getSource() |
Type |
getType() |
String |
getVia() |
Class<? extends org.apache.sling.models.annotations.ViaProviderType> |
getViaProviderType() |
boolean |
hasDefaultValue() |
boolean |
isOptional(org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor annotationProcessor) |
boolean |
isPrimitive() |
RuntimeException |
set(Object createdObject,
Result<Object> result) |
public InjectableField(Field field, org.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactory[] processorFactories, org.apache.sling.models.annotations.DefaultInjectionStrategy defaultInjectionStrategy)
public RuntimeException set(Object createdObject, Result<Object> result)
public boolean isPrimitive()
public Class<?> getFieldType()
public Type getFieldGenericType()
public final AnnotatedElement getAnnotatedElement()
getAnnotatedElement in interface InjectableElementpublic final Type getType()
getType in interface InjectableElementpublic final String getName()
getName in interface InjectableElementpublic String getSource()
getSource in interface InjectableElementpublic String getVia()
getVia in interface InjectableElementpublic Class<? extends org.apache.sling.models.annotations.ViaProviderType> getViaProviderType()
getViaProviderType in interface InjectableElementpublic boolean hasDefaultValue()
hasDefaultValue in interface InjectableElementpublic Object getDefaultValue()
getDefaultValue in interface InjectableElementpublic boolean isOptional(org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor annotationProcessor)
isOptional in interface InjectableElementtrue if the element is optional otherwise falseCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.