1 25 26 package org.objectweb.easybeans.deployment.annotations.analyzer.classes; 27 28 import org.objectweb.asm.Type; 29 30 import org.objectweb.easybeans.deployment.annotations.analyzer.AnnotationType; 31 import org.objectweb.easybeans.deployment.annotations.analyzer.ObjectAnnotationVisitor; 32 import org.objectweb.easybeans.deployment.annotations.metadata.ClassAnnotationMetadata; 33 34 38 public class JavaxEjbLocalHomeVisitor extends ObjectAnnotationVisitor<ClassAnnotationMetadata, Type> implements AnnotationType { 39 40 43 public static final String TYPE = "Ljavax/ejb/LocalHome;"; 44 45 49 public JavaxEjbLocalHomeVisitor(final ClassAnnotationMetadata classAnnotationMetadata) { 50 super(classAnnotationMetadata); 51 } 52 53 56 @Override 57 public void visitEnd() { 58 Type t = getValue(); 59 String className = t.getInternalName(); 60 getAnnotationMetadata().setLocalHome(className); 61 } 62 63 66 public String getType() { 67 return TYPE; 68 } 69 70 } 71 | Popular Tags |