1 26 27 package org.objectweb.jonas_lib.deployment.xml; 28 29 35 public abstract class AbsEnvironmentElement extends AbsDescriptionElement implements JndiEnvRefsGroupXml { 36 37 40 private JLinkedList ejbLocalRefList = null; 41 42 45 private JLinkedList ejbRefList = null; 46 47 50 private JLinkedList envEntryList = null; 51 52 55 private JLinkedList resourceEnvRefList = null; 56 57 60 private JLinkedList resourceRefList = null; 61 62 63 66 private JLinkedList serviceRefList = null; 67 68 71 private JLinkedList messageDestinationRefList = null; 72 73 74 75 76 79 public AbsEnvironmentElement() { 80 super(); 81 ejbLocalRefList = new JLinkedList("ejb-local-ref"); 82 ejbRefList = new JLinkedList("ejb-ref"); 83 envEntryList = new JLinkedList("env-entry"); 84 resourceEnvRefList = new JLinkedList("resource-env-ref"); 85 resourceRefList = new JLinkedList("resource-ref"); 86 serviceRefList = new JLinkedList("service-ref"); 87 messageDestinationRefList = new JLinkedList("message-destination-ref"); 88 } 89 90 91 92 94 98 public void addEjbLocalRef(EjbLocalRef ejbLocalRef) { 99 ejbLocalRefList.add(ejbLocalRef); 100 } 101 102 103 107 public void addEjbRef(EjbRef ejbRef) { 108 ejbRefList.add(ejbRef); 109 } 110 111 115 public void addEnvEntry(EnvEntry envEntry) { 116 envEntryList.add(envEntry); 117 } 118 119 123 public void addResourceEnvRef(ResourceEnvRef resourceEnvRef) { 124 resourceEnvRefList.add(resourceEnvRef); 125 } 126 127 131 public void addResourceRef(ResourceRef resourceRef) { 132 resourceRefList.add(resourceRef); 133 } 134 135 136 140 public void addServiceRef(ServiceRef serviceRef) { 141 serviceRefList.add(serviceRef); 142 } 143 144 148 public void addMessageDestinationRef(MessageDestinationRef messageDestinationRef) { 149 messageDestinationRefList.add(messageDestinationRef); 150 } 151 152 153 154 155 157 160 public JLinkedList getEjbLocalRefList() { 161 return ejbLocalRefList; 162 } 163 164 167 public JLinkedList getEjbRefList() { 168 return ejbRefList; 169 } 170 171 174 public JLinkedList getEnvEntryList() { 175 return envEntryList; 176 } 177 178 181 public JLinkedList getResourceEnvRefList() { 182 return resourceEnvRefList; 183 } 184 185 186 189 public JLinkedList getResourceRefList() { 190 return resourceRefList; 191 } 192 193 194 197 public JLinkedList getServiceRefList() { 198 return serviceRefList; 199 } 200 201 204 public JLinkedList getMessageDestinationRefList() { 205 return messageDestinationRefList; 206 } 207 208 } 209 | Popular Tags |