1 25 26 package org.objectweb.easybeans.deployment.annotations.analyzer; 27 28 import org.objectweb.asm.Type; 29 30 import org.objectweb.easybeans.deployment.annotations.impl.JInterceptors; 31 import org.objectweb.easybeans.deployment.annotations.metadata.interfaces.IEJBInterceptors; 32 33 39 public class JavaxInterceptorInterceptorsVisitor<T extends IEJBInterceptors> extends 40 ObjectArrayAnnotationVisitor<T, Type> implements AnnotationType { 41 42 45 public static final String TYPE = "Ljavax/interceptor/Interceptors;"; 46 47 51 public JavaxInterceptorInterceptorsVisitor(final T annotationMetadata) { 52 super(annotationMetadata); 53 } 54 55 59 @Override 60 public void visitEnd() { 61 JInterceptors jInterceptors = new JInterceptors(); 62 for (Type s : getArrayObjects()) { 63 jInterceptors.addClass(s.getInternalName()); 64 } 65 66 getAnnotationMetadata().setAnnotationsInterceptors(jInterceptors); 67 68 } 69 70 73 public String getType() { 74 return TYPE; 75 } 76 77 } 78 | Popular Tags |