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 java.lang.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 java.lang.ObjectgetDefault()Deprecated.Tries to get the default value from the annotation.java.lang.StringgetName()Deprecated.Tries to get the name value from the annotation.java.lang.StringgetVia()Deprecated.Tries to get the via value from the annotation.booleanhasDefault()Deprecated.java.lang.BooleanisOptional()Deprecated.Tries to get the information whether the injection is optional.
-
-
-
Method Detail
-
getName
public java.lang.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 java.lang.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 java.lang.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 java.lang.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.
-
-