1 7 package org.jboss.ejb3.dd; 8 9 import java.util.ArrayList ; 10 import java.util.List ; 11 12 import org.jboss.logging.Logger; 13 14 21 public class Callback 22 { 23 private static final Logger log = Logger.getLogger(Callback.class); 24 25 private List methods = new ArrayList (); 26 private String annotation; 27 28 public String getAnnotation() 29 { 30 return annotation; 31 } 32 33 public void setAnnotation(String annotation) 34 { 35 this.annotation = annotation; 36 } 37 38 public List getMethods() 39 { 40 return methods; 41 } 42 43 public void addMethod(Method method) 44 { 45 methods.add(method); 46 } 47 48 public String toString() 49 { 50 StringBuffer sb = new StringBuffer (100); 51 sb.append("["); 52 sb.append("annotation=").append(annotation); 53 sb.append("]"); 54 return sb.toString(); 55 } 56 } 57 | Popular Tags |