Class AbstractInjectAnnotationProcessor2
- java.lang.Object
-
- org.apache.sling.models.spi.injectorspecific.AbstractInjectAnnotationProcessor
-
- org.apache.sling.models.spi.injectorspecific.AbstractInjectAnnotationProcessor2
-
- All Implemented Interfaces:
InjectAnnotationProcessor,InjectAnnotationProcessor2
@ConsumerType public class AbstractInjectAnnotationProcessor2 extends AbstractInjectAnnotationProcessor implements InjectAnnotationProcessor2
Default implementation ofInjectAnnotationProcessor2.
-
-
Constructor Summary
Constructors Constructor Description AbstractInjectAnnotationProcessor2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InjectionStrategygetInjectionStrategy()Tries to get the information whether the injection is optional.-
Methods inherited from class org.apache.sling.models.spi.injectorspecific.AbstractInjectAnnotationProcessor
getDefault, getName, getVia, hasDefault, isOptional
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor
isOptional
-
Methods inherited from interface org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor2
getDefault, getName, getVia, hasDefault
-
-
-
-
Method Detail
-
getInjectionStrategy
public InjectionStrategy getInjectionStrategy()
Description copied from interface:InjectAnnotationProcessor2Tries to get the information whether the injection is optional.- Specified by:
getInjectionStrategyin interfaceInjectAnnotationProcessor2- Returns:
REQUIREDif injection is mandatory,OPTIONALif injection is optional orDEFAULTin which case the standard annotation/injection strategy should be used.
-
-