1 22 package org.jboss.ejb; 23 24 import java.util.ArrayList ; 25 26 32 public class RolesAllowedImpl implements javax.annotation.security.RolesAllowed 33 { 34 private ArrayList values = new ArrayList (); 35 36 public RolesAllowedImpl() 37 { 38 } 39 40 public void addValue(String value) 41 { 42 values.add(value); 43 } 44 45 public String [] value() 46 { 47 String [] value = new String [values.size()]; 48 values.toArray(value); 49 return value; 50 } 51 52 public Class annotationType() 53 { 54 return javax.annotation.security.RolesAllowed.class; 55 } 56 57 public String name() 58 { 59 return javax.annotation.security.RolesAllowed.class.getName(); 60 } 61 } 62 | Popular Tags |