Class ConfigurableAnnotationStrategy

    • Constructor Summary

      Constructors 
      Constructor Description
      ConfigurableAnnotationStrategy​(java.lang.Class<? extends java.lang.annotation.Annotation> inject, java.lang.Class<? extends java.lang.annotation.Annotation> qualifier, java.lang.Class<? extends java.lang.annotation.Annotation> optional)
      Constructs a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.annotation.Annotation> getInjectAnnotations​(java.lang.reflect.AnnotatedElement element)  
      java.util.Set<java.lang.annotation.Annotation> getQualifiers​(java.lang.reflect.AnnotatedElement element)  
      boolean isOptional​(java.lang.reflect.AnnotatedElement element)  
      boolean isQualifier​(java.lang.annotation.Annotation annotation)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConfigurableAnnotationStrategy

        public ConfigurableAnnotationStrategy​(java.lang.Class<? extends java.lang.annotation.Annotation> inject,
                                              java.lang.Class<? extends java.lang.annotation.Annotation> qualifier,
                                              java.lang.Class<? extends java.lang.annotation.Annotation> optional)
        Constructs a new instance.
        Parameters:
        inject - an inject annotation Class to use, cannot be null
        qualifier - a qualifier annotation Class to use, cannot be null
        optional - an optional annotation Class to use, can be null
    • Method Detail

      • isOptional

        public boolean isOptional​(java.lang.reflect.AnnotatedElement element)
        Specified by:
        isOptional in interface AnnotationStrategy
      • getInjectAnnotations

        public java.util.Set<java.lang.annotation.Annotation> getInjectAnnotations​(java.lang.reflect.AnnotatedElement element)
        Specified by:
        getInjectAnnotations in interface AnnotationStrategy
      • getQualifiers

        public java.util.Set<java.lang.annotation.Annotation> getQualifiers​(java.lang.reflect.AnnotatedElement element)
        Specified by:
        getQualifiers in interface AnnotationStrategy
      • isQualifier

        public boolean isQualifier​(java.lang.annotation.Annotation annotation)
        Specified by:
        isQualifier in interface AnnotationStrategy