Class DefaultAnnotationScanner

  • All Implemented Interfaces:
    AnnotationScanner, org.glassfish.hk2.api.PostConstruct

    @Service(name="default")
    @Singleton
    public class DefaultAnnotationScanner
    extends Object
    implements AnnotationScanner, org.glassfish.hk2.api.PostConstruct
    This class contains the list of all annotations types name which can be present at the class level (Type.TYPE).
    Author:
    Jerome Dochez
    • Constructor Detail

      • DefaultAnnotationScanner

        public DefaultAnnotationScanner()
    • Method Detail

      • isAnnotation

        public boolean isAnnotation​(String value)
        Test if the passed constant pool string is a reference to a Type.TYPE annotation of a J2EE component
        Specified by:
        isAnnotation in interface AnnotationScanner
        Returns:
        true if it is a J2EE annotation reference
      • postConstruct

        public void postConstruct()
        Specified by:
        postConstruct in interface org.glassfish.hk2.api.PostConstruct
      • getAnnotations

        public Set<String> getAnnotations​(boolean isMetaDataComplete)
      • getAnnotations

        public Set<String> getAnnotations()
        Description copied from interface: AnnotationScanner
        Returns a list of FQCN of annotations we are interested in.
        Specified by:
        getAnnotations in interface AnnotationScanner
        Returns:
        a list of fully qualified class name list of annotations.