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