Class AbstractInjectAnnotationProcessor
- java.lang.Object
-
- org.apache.sling.models.spi.injectorspecific.AbstractInjectAnnotationProcessor
-
- All Implemented Interfaces:
InjectAnnotationProcessor
- Direct Known Subclasses:
AbstractInjectAnnotationProcessor2
@Deprecated @ConsumerType public class AbstractInjectAnnotationProcessor extends Object implements InjectAnnotationProcessor
Deprecated.UseAbstractInjectAnnotationProcessor2insteadDefault implementation ofInjectAnnotationProcessor.
-
-
Constructor Summary
Constructors Constructor Description AbstractInjectAnnotationProcessor()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ObjectgetDefault()Deprecated.Tries to get the default value from the annotation.StringgetName()Deprecated.Tries to get the name value from the annotation.StringgetVia()Deprecated.Tries to get the via value from the annotation.booleanhasDefault()Deprecated.BooleanisOptional()Deprecated.Tries to get the information whether the injection is optional.
-
-
-
Method Detail
-
getName
public String getName()
Deprecated.Description copied from interface:InjectAnnotationProcessorTries to get the name value from the annotation.- Specified by:
getNamein interfaceInjectAnnotationProcessor- Returns:
- the value to be used for the name or null, in which case the standard annotation or name derived from method/field should be used
-
getVia
public String getVia()
Deprecated.Description copied from interface:InjectAnnotationProcessorTries to get the via value from the annotation.- Specified by:
getViain interfaceInjectAnnotationProcessor- Returns:
- the value to be used for the via or null, in which case the standard annotation should be used
-
hasDefault
public boolean hasDefault()
Deprecated.- Specified by:
hasDefaultin interfaceInjectAnnotationProcessor- Returns:
- true, if a default value is set
-
getDefault
public Object getDefault()
Deprecated.Description copied from interface:InjectAnnotationProcessorTries to get the default value from the annotation. Only used ifInjectAnnotationProcessor.hasDefault()is set to true.- Specified by:
getDefaultin interfaceInjectAnnotationProcessor- Returns:
- the value to be used if nothing can be injected
-
isOptional
public Boolean isOptional()
Deprecated.Description copied from interface:InjectAnnotationProcessorTries to get the information whether the injection is optional.- Specified by:
isOptionalin interfaceInjectAnnotationProcessor- Returns:
- the value to be used for the default or null, in which case the standard annotation should be used.
-
-