1 25 26 package org.objectweb.easybeans.deployment.annotations.analyzer; 27 28 import java.util.ArrayList ; 29 import java.util.List ; 30 31 import org.objectweb.easybeans.deployment.annotations.metadata.interfaces.IAnnotationSecurityRolesAllowed; 32 33 39 public class JavaxAnnotationSecurityRolesAllowedVisitor<T extends IAnnotationSecurityRolesAllowed> extends 40 ObjectArrayAnnotationVisitor<T, String > implements AnnotationType { 41 42 45 public static final String TYPE = "Ljavax/annotation/security/RolesAllowed;"; 46 47 51 public JavaxAnnotationSecurityRolesAllowedVisitor(final T annotationMetadata) { 52 super(annotationMetadata); 53 } 54 55 59 @Override 60 public void visitEnd() { 61 List <String > rolesAllowed = new ArrayList <String >(); 62 for (String s : getArrayObjects()) { 63 rolesAllowed.add(s); 64 } 65 getAnnotationMetadata().setRolesAllowed(rolesAllowed); 66 } 67 68 71 public String getType() { 72 return TYPE; 73 } 74 75 } 76 | Popular Tags |