1 25 26 package org.objectweb.jonas_lib.genbase.archive; 27 28 import java.util.List ; 29 import java.util.Vector ; 30 31 import org.w3c.dom.Element ; 32 33 import org.objectweb.jonas_ejb.deployment.api.BeanDesc; 34 35 import org.objectweb.jonas_lib.deployment.api.EjbRefDesc; 36 37 import org.objectweb.jonas_ws.deployment.api.ServiceRefDesc; 38 39 43 public class Ejb implements EjbRefModule, WsClient { 44 45 48 private List sRefs; 49 50 53 private List ejbRefs; 54 55 58 private String name; 59 60 63 private Element jbean; 64 65 71 public Ejb(BeanDesc bd, Element bean) { 72 name = bd.getEjbName(); 74 75 jbean = bean; 77 78 sRefs = new Vector (); 80 81 ServiceRefDesc[] refs = bd.getServiceRefDesc(); 82 83 for (int i = 0; i < refs.length; i++) { 84 sRefs.add(refs[i]); 85 } 86 87 ejbRefs = new Vector (); 89 EjbRefDesc[] refDesc = bd.getEjbRefDesc(); 90 91 for (int i = 0; i < refDesc.length; i++) { 92 ejbRefs.add(refDesc[i]); 93 } 94 } 95 96 100 public List getServiceRefDescs() { 101 return sRefs; 102 } 103 104 105 109 public List getEjbRefDescs() { 110 return ejbRefs; 111 } 112 113 117 public String getName() { 118 return name; 119 } 120 121 125 public Element getJonasBeanElement() { 126 return jbean; 127 } 128 129 132 public void close() { 133 sRefs = null; 134 ejbRefs = null; 135 name = null; 136 jbean = null; 137 } 138 139 } | Popular Tags |