1 23 package com.sun.enterprise.deployment.annotation.introspection; 24 25 import java.util.Set ; 26 import java.util.HashSet ; 27 28 36 public class EjbComponentAnnotationScanner implements CustomAnnotationScanner { 37 38 private Set <String > annotations=null; 39 40 41 public EjbComponentAnnotationScanner() {} 42 43 50 public boolean isAnnotation(String value) { 51 if (annotations==null) { 52 synchronized(EjbComponentAnnotationScanner.class) { 53 if (annotations==null) 54 init(); 55 } 56 } 57 return annotations.contains(value); 58 } 59 60 private void init() { 61 annotations = new HashSet (); 62 annotations.add("Ljavax/ejb/Stateless;"); 63 annotations.add("Ljavax/ejb/Stateful;"); 64 annotations.add("Ljavax/ejb/MessageDriven;"); 65 } 66 } 67 | Popular Tags |