FileDocCategorySizeDatePackage
AnnotationScanner.javaAPI DocGlassfish v2 API3248Fri May 04 22:31:34 BST 2007com.sun.enterprise.deployment.annotation.introspection

AnnotationScanner

public class AnnotationScanner extends Object
This class contains the list of all annotations types name which can be present at the class level (Type.TYPE).
author
Jerome Dochez

Fields Summary
private static Set
annotations
Constructors Summary
private AnnotationScanner()
Creates a new instance of AnnotationScanner

    
           
      
    
Methods Summary
private static voidinit()

        annotations = SJSASFactory.getAnnotations();
    
public static booleanisAnnotation(java.lang.String value)
Test if the passed constant pool string is a reference to a Type.TYPE annotation of a J2EE component

String
the constant pool info string
return
true if it is a J2EE annotation reference

        if (annotations==null) {
            synchronized(AnnotationScanner.class) {
                if (annotations==null)
                   init();
            }
        }
        return annotations.contains(value);