1 22 package org.jboss.annotation.ejb; 23 24 import java.lang.annotation.Annotation ; 25 import java.util.ArrayList ; 26 27 31 public class DependsImpl implements Depends 32 { 33 private ArrayList <String > dependencies = new ArrayList (); 34 35 public DependsImpl() 36 { 37 } 38 39 public String [] value() 40 { 41 String [] value = new String [dependencies.size()]; 42 dependencies.toArray(value); 43 return value; 44 } 45 46 public void addDependency(String dependency) 47 { 48 dependencies.add(dependency); 49 } 50 51 public Class <? extends Annotation > annotationType() 52 { 53 return Depends.class; 54 } 55 } 56 | Popular Tags |