001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.jee.oejb2;
017:
018: import org.apache.openejb.jee.oejb2.EnvironmentType;
019: import org.apache.openejb.jee.oejb2.MessageDestinationType;
020: import org.apache.openejb.jee.oejb2.AbstractSecurityType;
021: import org.apache.openejb.jee.oejb2.AbstractServiceType;
022: import org.apache.openejb.jee.oejb2.AbstractNamingEntryType;
023: import org.apache.openejb.jee.oejb2.EjbRefType;
024: import org.apache.openejb.jee.oejb2.EjbLocalRefType;
025: import org.apache.openejb.jee.oejb2.ServiceRefType;
026: import org.apache.openejb.jee.oejb2.ResourceRefType;
027: import org.apache.openejb.jee.oejb2.ResourceEnvRefType;
028: import org.apache.openejb.jee.jpa.unit.Persistence;
029:
030: import javax.xml.bind.annotation.XmlElement;
031: import javax.xml.bind.annotation.XmlElementRef;
032: import javax.xml.bind.annotation.XmlAccessorType;
033: import javax.xml.bind.annotation.XmlAccessType;
034: import javax.xml.bind.annotation.XmlType;
035: import javax.xml.bind.annotation.XmlAnyElement;
036: import javax.xml.bind.JAXBElement;
037: import java.util.List;
038: import java.util.ArrayList;
039:
040: /**
041: * <p>Java class for geronimo-ejb-jarType complex type.
042: *
043: * <p>The following schema fragment specifies the expected content contained within this class.
044: *
045: * <pre>
046: * <complexType name="geronimo-ejb-jarType">
047: * <complexContent>
048: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
049: * <sequence>
050: * <element ref="{http://geronimo.apache.org/xml/ns/deployment-1.2}environment" minOccurs="0"/>
051: * <element ref="{http://geronimo.apache.org/xml/ns/j2ee/application-2.0}clustering" minOccurs="0"/>
052: * <element name="openejb-jar" type="{http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0}openejb-jarType" minOccurs="0"/>
053: * <group ref="{http://geronimo.apache.org/xml/ns/naming-1.2}jndiEnvironmentRefsGroup" maxOccurs="unbounded" minOccurs="0"/>
054: * <element ref="{http://geronimo.apache.org/xml/ns/naming-1.2}message-destination" maxOccurs="unbounded" minOccurs="0"/>
055: * <element name="tss-link" type="{http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0}tss-linkType" maxOccurs="unbounded" minOccurs="0"/>
056: * <element name="web-service-binding" type="{http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0}web-service-bindingType" maxOccurs="unbounded" minOccurs="0"/>
057: * <element ref="{http://geronimo.apache.org/xml/ns/j2ee/application-2.0}security" minOccurs="0"/>
058: * <choice maxOccurs="unbounded" minOccurs="0">
059: * <element ref="{http://geronimo.apache.org/xml/ns/deployment-1.2}service"/>
060: * <element ref="{http://java.sun.com/xml/ns/persistence}persistence"/>
061: * </choice>
062: * </sequence>
063: * </restriction>
064: * </complexContent>
065: * </complexType>
066: * </pre>
067: *
068: *
069: */
070: @XmlAccessorType(XmlAccessType.FIELD)
071: @XmlType(name="geronimo-ejb-jarType",namespace="http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0",propOrder={"environment","clustering","openejbJar","abstractNamingEntry","persistenceContextRef","persistenceUnitRef","ejbRef","ejbLocalRef","serviceRef","resourceRef","resourceEnvRef","messageDestination","tssLink","webServiceBinding","security","service","persistence"})
072: public class GeronimoEjbJarType {
073:
074: @XmlElement(namespace="http://geronimo.apache.org/xml/ns/deployment-1.2")
075: protected EnvironmentType environment;
076:
077: @XmlElementRef(name="clustering",namespace="http://geronimo.apache.org/xml/ns/j2ee/application-1.2",type=JAXBElement.class)
078: protected JAXBElement<? extends AbstractClusteringType> clustering;
079:
080: @XmlAnyElement(lax=true)
081: protected Object openejbJar;
082:
083: @XmlElementRef(name="abstract-naming-entry",namespace="http://geronimo.apache.org/xml/ns/naming-1.2",type=JAXBElement.class)
084: protected List<JAXBElement<? extends AbstractNamingEntryType>> abstractNamingEntry;
085:
086: @XmlElement(name="persistence-contenxt-ref",namespace="http://geronimo.apache.org/xml/ns/naming-1.2")
087: protected List<PersistenceContextRefType> persistenceContextRef;
088:
089: @XmlElement(name="persistence-unit-ref",namespace="http://geronimo.apache.org/xml/ns/naming-1.2")
090: protected List<PersistenceUnitRefType> persistenceUnitRef;
091:
092: @XmlElement(name="ejb-ref",namespace="http://geronimo.apache.org/xml/ns/naming-1.2")
093: protected List<EjbRefType> ejbRef;
094:
095: @XmlElement(name="ejb-local-ref",namespace="http://geronimo.apache.org/xml/ns/naming-1.2")
096: protected List<EjbLocalRefType> ejbLocalRef;
097:
098: @XmlElement(name="service-ref",namespace="http://geronimo.apache.org/xml/ns/naming-1.2")
099: protected List<ServiceRefType> serviceRef;
100:
101: @XmlElement(name="resource-ref",namespace="http://geronimo.apache.org/xml/ns/naming-1.2")
102: protected List<ResourceRefType> resourceRef;
103:
104: @XmlElement(name="resource-env-ref",namespace="http://geronimo.apache.org/xml/ns/naming-1.2")
105: protected List<ResourceEnvRefType> resourceEnvRef;
106:
107: @XmlElement(name="message-destination",namespace="http://geronimo.apache.org/xml/ns/naming-1.2")
108: protected List<MessageDestinationType> messageDestination;
109:
110: @XmlElement(name="tss-link")
111: protected List<TssLinkType> tssLink;
112:
113: @XmlElement(name="web-service-binding")
114: protected List<WebServiceBindingType> webServiceBinding;
115:
116: @XmlElementRef(name="security",namespace="http://geronimo.apache.org/xml/ns/j2ee/application-1.2",type=JAXBElement.class)
117: protected JAXBElement<? extends AbstractSecurityType> security;
118:
119: @XmlElementRef(name="service",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2",type=JAXBElement.class)
120: protected List<JAXBElement<? extends AbstractServiceType>> service;
121:
122: @XmlElementRef(name="persistence",namespace="http://java.sun.com/xml/ns/persistence",type=Persistence.class)
123: protected List<Persistence> persistence;
124:
125: /**
126: * Gets the value of the environment property.
127: *
128: * @return
129: * possible object is
130: * {@link EnvironmentType }
131: *
132: */
133: public EnvironmentType getEnvironment() {
134: return environment;
135: }
136:
137: /**
138: * Sets the value of the environment property.
139: *
140: * @param value
141: * allowed object is
142: * {@link EnvironmentType }
143: *
144: */
145: public void setEnvironment(EnvironmentType value) {
146: this .environment = value;
147: }
148:
149: /**
150: *
151: * Reference to abstract clustering element defined in
152: * imported "geronimo-application-2.0.xsd"
153: *
154: *
155: * @return
156: * possible object is
157: * {@link AbstractClusteringType }
158: *
159: */
160: public JAXBElement<? extends AbstractClusteringType> getClustering() {
161: return clustering;
162: }
163:
164: /**
165: * Sets the value of the clustering property.
166: *
167: * @param value
168: * allowed object is
169: * {@link AbstractClusteringType }
170: *
171: */
172: public void setClustering(
173: JAXBElement<? extends AbstractClusteringType> value) {
174: this .clustering = value;
175: }
176:
177: /**
178: * Gets the value of the jndiEnvironmentRefsGroup property.
179: *
180: * <p>
181: * This accessor method returns a reference to the live list,
182: * not a snapshot. Therefore any modification you make to the
183: * returned list will be present inside the JAXB object.
184: * This is why there is not a <CODE>set</CODE> method for the jndiEnvironmentRefsGroup property.
185: *
186: * <p>
187: * For example, to add a new item, do as follows:
188: * <pre>
189: * getJndiEnvironmentRefsGroup().add(newItem);
190: * </pre>
191: *
192: *
193: * <p>
194: * Objects of the following type(s) are allowed in the list
195: * {@link JAXBElement }{@code <}{@link ResourceEnvRefType }{@code >}
196: * {@link JAXBElement }{@code <}{@link EjbRefType }{@code >}
197: * {@link JAXBElement }{@code <}{@link org.apache.openejb.jee.oejb2.PersistenceUnitRefType }{@code >}
198: * {@link JAXBElement }{@code <}{@link org.apache.openejb.jee.oejb2.GbeanRefType }{@code >}
199: * {@link JAXBElement }{@code <}{@link EjbLocalRefType }{@code >}
200: * {@link JAXBElement }{@code <}{@link ResourceRefType }{@code >}
201: * {@link JAXBElement }{@code <}{@link ServiceRefType }{@code >}
202: * {@link JAXBElement }{@code <}{@link org.apache.openejb.jee.oejb2.PersistenceContextRefType }{@code >}
203: * {@link JAXBElement }{@code <}{@link AbstractNamingEntryType }{@code >}
204: *
205: *
206: */
207: // public List<Object> getJndiEnvironmentRefsGroup() {
208: // if (jndiEnvironmentRefsGroup == null) {
209: // jndiEnvironmentRefsGroup = new ArrayList<Object>();
210: // }
211: // return this.jndiEnvironmentRefsGroup;
212: // }
213: public List<JAXBElement<? extends AbstractNamingEntryType>> getAbstractNamingEntry() {
214: if (abstractNamingEntry == null) {
215: abstractNamingEntry = new ArrayList<JAXBElement<? extends AbstractNamingEntryType>>();
216: }
217: return this .abstractNamingEntry;
218: }
219:
220: public List<PersistenceContextRefType> getPersistenceContextRef() {
221: if (persistenceContextRef == null) {
222: persistenceContextRef = new ArrayList<PersistenceContextRefType>();
223: }
224: return persistenceContextRef;
225: }
226:
227: public List<PersistenceUnitRefType> getPersistenceUnitRef() {
228: if (persistenceUnitRef == null) {
229: persistenceUnitRef = new ArrayList<PersistenceUnitRefType>();
230: }
231: return persistenceUnitRef;
232: }
233:
234: public List<EjbRefType> getEjbRef() {
235: if (ejbRef == null) {
236: ejbRef = new ArrayList<EjbRefType>();
237: }
238: return this .ejbRef;
239: }
240:
241: public List<EjbLocalRefType> getEjbLocalRef() {
242: if (ejbLocalRef == null) {
243: ejbLocalRef = new ArrayList<EjbLocalRefType>();
244: }
245: return this .ejbLocalRef;
246: }
247:
248: public List<ServiceRefType> getServiceRef() {
249: if (serviceRef == null) {
250: serviceRef = new ArrayList<ServiceRefType>();
251: }
252: return this .serviceRef;
253: }
254:
255: public List<ResourceRefType> getResourceRef() {
256: if (resourceRef == null) {
257: resourceRef = new ArrayList<ResourceRefType>();
258: }
259: return this .resourceRef;
260: }
261:
262: public List<ResourceEnvRefType> getResourceEnvRef() {
263: if (resourceEnvRef == null) {
264: resourceEnvRef = new ArrayList<ResourceEnvRefType>();
265: }
266: return this .resourceEnvRef;
267: }
268:
269: public Object getOpenejbJar() {
270: return openejbJar;
271: }
272:
273: public void setOpenejbJar(Object openejbJar) {
274: this .openejbJar = openejbJar;
275: }
276:
277: /**
278: * Gets the value of the messageDestination property.
279: *
280: * <p>
281: * This accessor method returns a reference to the live list,
282: * not a snapshot. Therefore any modification you make to the
283: * returned list will be present inside the JAXB object.
284: * This is why there is not a <CODE>set</CODE> method for the messageDestination property.
285: *
286: * <p>
287: * For example, to add a new item, do as follows:
288: * <pre>
289: * getMessageDestination().add(newItem);
290: * </pre>
291: *
292: *
293: * <p>
294: * Objects of the following type(s) are allowed in the list
295: * {@link MessageDestinationType }
296: *
297: *
298: */
299: public List<MessageDestinationType> getMessageDestination() {
300: if (messageDestination == null) {
301: messageDestination = new ArrayList<MessageDestinationType>();
302: }
303: return this .messageDestination;
304: }
305:
306: public List<TssLinkType> getTssLink() {
307: if (tssLink == null) {
308: tssLink = new ArrayList<TssLinkType>();
309: }
310: return tssLink;
311: }
312:
313: public List<WebServiceBindingType> getWebServiceBinding() {
314: if (webServiceBinding == null) {
315: webServiceBinding = new ArrayList<WebServiceBindingType>();
316: }
317: return webServiceBinding;
318: }
319:
320: public JAXBElement<? extends AbstractSecurityType> getSecurity() {
321: return security;
322: }
323:
324: public void setSecurity(
325: JAXBElement<? extends AbstractSecurityType> security) {
326: this .security = security;
327: }
328:
329: /**
330: * Gets the value of the service property.
331: *
332: * <p>
333: * This accessor method returns a reference to the live list,
334: * not a snapshot. Therefore any modification you make to the
335: * returned list will be present inside the JAXB object.
336: * This is why there is not a <CODE>set</CODE> method for the service property.
337: *
338: * <p>
339: * For example, to add a new item, do as follows:
340: * <pre>
341: * getService().add(newItem);
342: * </pre>
343: *
344: *
345: * <p>
346: * Objects of the following type(s) are allowed in the list
347: * {@link JAXBElement }{@code <}{@link AbstractServiceType }{@code >}
348: * {@link JAXBElement }{@code <}{@link org.apache.openejb.jee.oejb2.GbeanType }{@code >}
349: *
350: *
351: */
352: public List<JAXBElement<? extends AbstractServiceType>> getService() {
353: if (service == null) {
354: service = new ArrayList<JAXBElement<? extends AbstractServiceType>>();
355: }
356: return this .service;
357: }
358:
359: public List<Persistence> getPersistence() {
360: if (persistence == null) {
361: persistence = new ArrayList<Persistence>();
362: }
363: return persistence;
364: }
365: }
|