Class DefaultAnnotationScanner
- java.lang.Object
-
- com.sun.enterprise.deployment.annotation.introspection.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 Summary
Constructors Constructor Description DefaultAnnotationScanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getAnnotations()
Returns a list of FQCN of annotations we are interested in.Set<String>
getAnnotations(boolean isMetaDataComplete)
boolean
isAnnotation(String value)
Test if the passed constant pool string is a reference to a Type.TYPE annotation of a J2EE componentvoid
postConstruct()
-
-
-
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 interfaceAnnotationScanner
- Returns:
- true if it is a J2EE annotation reference
-
postConstruct
public void postConstruct()
- Specified by:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
-
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 interfaceAnnotationScanner
- Returns:
- a list of fully qualified class name list of annotations.
-
-