|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.deployment.annotation.introspection.AbstractAnnotationScanner
public abstract class AbstractAnnotationScanner
Abstract superclass for instance-based annotation scanners.
| Field Summary | |
|---|---|
protected java.util.Set<java.lang.String> |
annotations
holds the annotations of interest to the specific type of scanner |
| Constructor Summary | |
|---|---|
AbstractAnnotationScanner()
Creates a new instance of AbstractAnnotationScanner |
|
| Method Summary | |
|---|---|
static java.util.Set<java.lang.String> |
constantPoolToFQCN(java.util.Set<java.lang.String> annotations)
|
java.util.Set<java.lang.String> |
getAnnotations()
Returns a list of FQCN of annotations we are interested in. |
protected abstract void |
init(java.util.Set<java.lang.String> annotationsSet)
Invoked so the concrete subclass can populate the annotations set. |
boolean |
isAnnotation(java.lang.String value)
Test if the passed constant pool string is a reference to a Type.TYPE annotation of a J2EE component |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected volatile java.util.Set<java.lang.String> annotations
| Constructor Detail |
|---|
public AbstractAnnotationScanner()
| Method Detail |
|---|
protected abstract void init(java.util.Set<java.lang.String> annotationsSet)
Concrete implementations of this method should add to the set one or more Strings corresponding to the annotations of interest.
annotationsSet - the Set object to be populatedpublic boolean isAnnotation(java.lang.String value)
isAnnotation in interface AnnotationScannerpublic java.util.Set<java.lang.String> getAnnotations()
AnnotationScanner
getAnnotations in interface AnnotationScannerpublic static java.util.Set<java.lang.String> constantPoolToFQCN(java.util.Set<java.lang.String> annotations)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||