1 22 package org.jboss.ejb3.mdb; 23 24 import java.io.Serializable ; 25 import java.util.ArrayList ; 26 import java.util.List ; 27 import java.lang.annotation.Annotation ; 28 import org.jboss.annotation.ejb.Producer; 29 import org.jboss.annotation.ejb.Producers; 30 31 36 public class ProducersImpl implements Producers, Serializable 37 { 38 private List producers = new ArrayList (); 39 40 public ProducersImpl() 41 { 42 } 43 44 public Producer[] value() 45 { 46 Producer[] result = new Producer[producers.size()]; 47 producers.toArray(result); 48 return result; 49 } 50 51 public void addProducer(Producer producer) 52 { 53 producers.add(producer); 54 } 55 56 public Class annotationType() 57 { 58 return Producers.class; 59 } 60 } 61 | Popular Tags |