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.UseAbstractInjectAnnotationProcessor2
insteadDefault 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.Object
getDefault()
Deprecated.Tries to get the default value from the annotation.java.lang.String
getName()
Deprecated.Tries to get the name value from the annotation.java.lang.String
getVia()
Deprecated.Tries to get the via value from the annotation.boolean
hasDefault()
Deprecated.java.lang.Boolean
isOptional()
Deprecated.Tries to get the information whether the injection is optional.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Deprecated.Description copied from interface:InjectAnnotationProcessor
Tries to get the name value from the annotation.- Specified by:
getName
in 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:InjectAnnotationProcessor
Tries to get the via value from the annotation.- Specified by:
getVia
in 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:
hasDefault
in interfaceInjectAnnotationProcessor
- Returns:
- true, if a default value is set
-
getDefault
public java.lang.Object getDefault()
Deprecated.Description copied from interface:InjectAnnotationProcessor
Tries to get the default value from the annotation. Only used ifInjectAnnotationProcessor.hasDefault()
is set to true.- Specified by:
getDefault
in interfaceInjectAnnotationProcessor
- Returns:
- the value to be used if nothing can be injected
-
isOptional
public java.lang.Boolean isOptional()
Deprecated.Description copied from interface:InjectAnnotationProcessor
Tries to get the information whether the injection is optional.- Specified by:
isOptional
in interfaceInjectAnnotationProcessor
- Returns:
- the value to be used for the default or null, in which case the standard annotation should be used.
-
-