FileDocCategorySizeDatePackage
EjbComponentAnnotationScanner.javaAPI DocGlassfish v2 API3213Fri May 04 22:31:36 BST 2007com.sun.enterprise.deployment.annotation.introspection

EjbComponentAnnotationScanner

public class EjbComponentAnnotationScanner extends Object implements CustomAnnotationScanner
This class contains the following annotation type: javax.ejb.Stateless javax.ejb.Stateful javax.ejb.MessageDriven
author
Qingqing Ouyang

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

    
           
      
Methods Summary
private voidinit()

        annotations = new HashSet();
        annotations.add("Ljavax/ejb/Stateless;");
        annotations.add("Ljavax/ejb/Stateful;");
        annotations.add("Ljavax/ejb/MessageDriven;");
    
public 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(EjbComponentAnnotationScanner.class) {
                if (annotations==null)
                   init();
            }
        }
        return annotations.contains(value);