Class AbstractAnnotationScanner
- java.lang.Object
-
- com.sun.enterprise.deployment.annotation.introspection.AbstractAnnotationScanner
-
- All Implemented Interfaces:
AnnotationScanner
- Direct Known Subclasses:
AppClientPersistenceDependencyAnnotationScanner
public abstract class AbstractAnnotationScanner extends Object implements AnnotationScanner
Abstract superclass for instance-based annotation scanners.- Author:
- tjquinn
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>
annotations
holds the annotations of interest to the specific type of scanner
-
Constructor Summary
Constructors Constructor Description AbstractAnnotationScanner()
Creates a new instance of AbstractAnnotationScanner
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Set<String>
constantPoolToFQCN(Set<String> annotations)
For a set of annotations removes first and last character and replaces any / with .Set<String>
getAnnotations()
Returns a list of FQCN of annotations we are interested in.protected abstract void
init(Set<String> annotationsSet)
Invoked so the concrete subclass can populate the annotations set.boolean
isAnnotation(String value)
Test if the passed constant pool string is a reference to a Type.TYPE annotation of a J2EE component
-
-
-
Method Detail
-
init
protected abstract void init(Set<String> annotationsSet)
Invoked so the concrete subclass can populate the annotations set.Concrete implementations of this method should add to the set one or more Strings corresponding to the annotations of interest.
- Parameters:
annotationsSet
- the Set object to be populated
-
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 an annotation reference of interest to this scanner
-
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.
-
-