Interface InjectAnnotationProcessor2

    • Method Detail

      • getName

        java.lang.String getName()
        Tries to get the name value from the annotation.
        Specified by:
        getName in interface InjectAnnotationProcessor
        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

        java.lang.String getVia()
        Tries to get the via value from the annotation.
        Specified by:
        getVia in interface InjectAnnotationProcessor
        Returns:
        the value to be used for the via or null, in which case the standard annotation should be used
      • getDefault

        java.lang.Object getDefault()
        Tries to get the default value from the annotation. Only used if hasDefault() is set to true.
        Specified by:
        getDefault in interface InjectAnnotationProcessor
        Returns:
        the value to be used if nothing can be injected
      • getInjectionStrategy

        InjectionStrategy getInjectionStrategy()
        Tries to get the information whether the injection is optional.
        Returns:
        REQUIRED if injection is mandatory, OPTIONAL if injection is optional or DEFAULT in which case the standard annotation/injection strategy should be used.