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.
Default implementation of
InjectAnnotationProcessor
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Tries to get the default value from the annotation.getName()
Deprecated.Tries to get the name value from the annotation.getVia()
Deprecated.Tries to get the via value from the annotation.boolean
Deprecated.Deprecated.Tries to get the information whether the injection is optional.
-
Constructor Details
-
AbstractInjectAnnotationProcessor
public AbstractInjectAnnotationProcessor()Deprecated.
-
-
Method Details
-
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
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
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
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.
-
AbstractInjectAnnotationProcessor2
instead