1 29 30 package com.caucho.ejb.cfg; 31 32 import com.caucho.bytecode.JMethod; 33 import com.caucho.config.ConfigException; 34 import com.caucho.ejb.gen.BeanAssembler; 35 import com.caucho.java.gen.BaseMethod; 36 import com.caucho.util.L10N; 37 38 41 public class EjbBaseMethod { 42 private static final L10N L = new L10N(EjbBaseMethod.class); 43 44 private EjbBean _bean; 45 46 private JMethod _method; 47 48 54 public EjbBaseMethod(EjbBean bean, JMethod method) 55 { 56 if (method == null) 57 throw new NullPointerException (); 58 59 _bean = bean; 60 _method = method; 61 } 62 63 66 public EjbBean getBean() 67 { 68 return _bean; 69 } 70 71 74 public JMethod getMethod() 75 { 76 return _method; 77 } 78 79 82 public BaseMethod assemble(BeanAssembler assembler, String fullClassName) 83 throws ConfigException 84 { 85 return null; 86 } 87 88 91 public boolean equals(Object o) 92 { 93 if (! (o instanceof EjbBaseMethod)) 94 return false; 95 96 EjbBaseMethod baseMethod = (EjbBaseMethod) o; 97 98 if (_bean != baseMethod._bean) 99 return false; 100 else if (! _method.equals(baseMethod._method)) 101 return false; 102 else 103 return true; 104 } 105 106 public String toString() 107 { 108 return "EJBBaseMethod[" + _method + "]"; 109 } 110 } 111 | Popular Tags |