1 7 package org.jboss.ejb; 8 9 import java.util.ArrayList ; 10 import java.util.List ; 11 12 import javax.annotation.EJB; 13 14 20 public class EJBsImpl implements javax.annotation.EJBs 21 { 22 private List ejbs = new ArrayList (); 23 24 public EJBsImpl() 25 { 26 } 27 28 public EJB[] value() 29 { 30 return (EJB[])ejbs.toArray(new EJBImpl[ejbs.size()]); 31 } 32 33 public void addEjb(EJB ejb) 34 { 35 ejbs.add(ejb); 36 } 37 38 public Class annotationType() 39 { 40 return javax.annotation.EJBs.class; 41 } 42 43 public String toString() 44 { 45 StringBuffer sb = new StringBuffer (100); 46 sb.append("["); 47 sb.append("ejbs=").append(ejbs); 48 sb.append("]"); 49 return sb.toString(); 50 } 51 } 52 | Popular Tags |