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.ObjectArrayAnnotationVisitor; 32 import org.objectweb.easybeans.deployment.annotations.impl.JLocal; 33 import org.objectweb.easybeans.deployment.annotations.metadata.ClassAnnotationMetadata; 34 35 39 public class JavaxEjbLocalVisitor extends ObjectArrayAnnotationVisitor<ClassAnnotationMetadata, Type> implements AnnotationType { 40 41 44 public static final String TYPE = "Ljavax/ejb/Local;"; 45 46 50 public JavaxEjbLocalVisitor(final ClassAnnotationMetadata classAnnotationMetadata) { 51 super(classAnnotationMetadata); 52 } 53 54 58 @Override 59 public void visitEnd() { 60 JLocal jLocal = new JLocal(); 61 for (Type s : getArrayObjects()) { 62 jLocal.addInterface(s.getInternalName()); 63 } 64 getAnnotationMetadata().setLocalInterfaces(jLocal); 65 66 } 67 68 71 public String getType() { 72 return TYPE; 73 } 74 75 } 76 | Popular Tags |