Class InjectableMethod

    • Constructor Detail

      • InjectableMethod

        public InjectableMethod​(Method method,
                                org.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactory[] processorFactories,
                                org.apache.sling.models.annotations.DefaultInjectionStrategy defaultInjectionStrategy)
    • Method Detail

      • getMethod

        public Method getMethod()
      • getGenericReturnType

        public Type getGenericReturnType()
        Returns:
        Generic return type of method (may be primitive)
      • isPrimitive

        public boolean isPrimitive()
        Returns:
        true if original type of injectable is a primitive type
      • getType

        public final Type getType()
        Specified by:
        getType in interface InjectableElement
        Returns:
        Type of injectable mapped to wrapper class
      • isOptional

        public boolean isOptional​(org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor annotationProcessor)
        Specified by:
        isOptional in interface InjectableElement
        Parameters:
        annotationProcessor - Annotation processor
        Returns:
        true if the element is optional otherwise false