1 26 27 package org.objectweb.jonas_lib.deployment.xml; 28 29 35 public abstract class AbsJonasEnvironmentElement extends AbsElement implements JonasJndiEnvRefsGroupXml { 36 37 40 private JLinkedList jonasEjbRefList = null; 41 42 45 private JLinkedList jonasResourceEnvRefList = null; 46 47 50 private JLinkedList jonasResourceRefList = null; 51 52 53 56 private JLinkedList jonasServiceRefList = null; 57 58 61 private JLinkedList jonasMessageDestinationRefList = null; 62 63 66 public AbsJonasEnvironmentElement() { 67 super(); 68 jonasEjbRefList = new JLinkedList("jonas-ejb-ref"); 69 jonasResourceEnvRefList = new JLinkedList("jonas-resource-env"); 70 jonasResourceRefList = new JLinkedList("jonas-resource"); 71 jonasServiceRefList = new JLinkedList("jonas-service-ref"); 72 jonasMessageDestinationRefList = new JLinkedList("jonas-message-destination-ref"); 73 } 74 75 76 77 79 83 public void addJonasEjbRef(JonasEjbRef jonasEjbRef) { 84 jonasEjbRefList.add(jonasEjbRef); 85 } 86 87 88 92 public void addJonasResourceEnv(JonasResourceEnv jonasResourceEnv) { 93 jonasResourceEnvRefList.add(jonasResourceEnv); 94 } 95 96 100 public void addJonasResource(JonasResource jonasResource) { 101 jonasResourceRefList.add(jonasResource); 102 } 103 104 108 public void addJonasServiceRef(JonasServiceRef jonasServiceRef) { 109 jonasServiceRefList.add(jonasServiceRef); 110 } 111 112 113 117 public void addJonasMessageDestinationRef(JonasMessageDestinationRef jonasMessageDestinationRef) { 118 jonasMessageDestinationRefList.add(jonasMessageDestinationRef); 119 } 120 121 123 126 public JLinkedList getJonasEjbRefList() { 127 return jonasEjbRefList; 128 } 129 130 133 public JLinkedList getJonasResourceEnvList() { 134 return jonasResourceEnvRefList; 135 } 136 137 140 public JLinkedList getJonasResourceList() { 141 return jonasResourceRefList; 142 } 143 144 145 148 public JLinkedList getJonasServiceRefList() { 149 return jonasServiceRefList; 150 } 151 152 155 public JLinkedList getJonasMessageDestinationRefList() { 156 return jonasMessageDestinationRefList; 157 } 158 159 } 160 | Popular Tags |