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.jba;
017:
018: import java.util.ArrayList;
019: import java.util.List;
020: import javax.xml.bind.annotation.XmlAccessType;
021: import javax.xml.bind.annotation.XmlAccessorType;
022: import javax.xml.bind.annotation.XmlAttribute;
023: import javax.xml.bind.annotation.XmlElement;
024: import javax.xml.bind.annotation.XmlID;
025: import javax.xml.bind.annotation.XmlRootElement;
026: import javax.xml.bind.annotation.XmlType;
027: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
028: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
029:
030: /**
031: *
032: */
033: @XmlAccessorType(XmlAccessType.FIELD)
034: @XmlType(name="",propOrder={"ejbName","activationConfig","destinationJndiName","localJndiName","mdbUser","mdbPasswd","mdbClientId","mdbSubscriptionId","resourceAdapterName","exceptionOnRollback","timerPersistence","configurationName","invokerBindings","securityProxy","ejbRef","ejbLocalRef","serviceRef","securityIdentity","resourceRef","resourceEnvRef","messageDestinationRef","depends","iorSecurityConfig","ejbTimeoutIdentity"})
035: @XmlRootElement(name="message-driven")
036: public class MessageDriven {
037:
038: @XmlAttribute
039: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
040: @XmlID
041: protected String id;
042: @XmlElement(name="ejb-name",required=true)
043: protected String ejbName;
044: @XmlElement(name="activation-config")
045: protected ActivationConfig activationConfig;
046: @XmlElement(name="destination-jndi-name")
047: protected String destinationJndiName;
048: @XmlElement(name="local-jndi-name")
049: protected String localJndiName;
050: @XmlElement(name="mdb-user")
051: protected String mdbUser;
052: @XmlElement(name="mdb-passwd")
053: protected String mdbPasswd;
054: @XmlElement(name="mdb-client-id")
055: protected String mdbClientId;
056: @XmlElement(name="mdb-subscription-id")
057: protected String mdbSubscriptionId;
058: @XmlElement(name="resource-adapter-name")
059: protected String resourceAdapterName;
060: @XmlElement(name="exception-on-rollback")
061: protected String exceptionOnRollback;
062: @XmlElement(name="timer-persistence")
063: protected String timerPersistence;
064: @XmlElement(name="configuration-name")
065: protected String configurationName;
066: @XmlElement(name="invoker-bindings")
067: protected InvokerBindings invokerBindings;
068: @XmlElement(name="security-proxy")
069: protected String securityProxy;
070: @XmlElement(name="ejb-ref")
071: protected List<EjbRef> ejbRef;
072: @XmlElement(name="ejb-local-ref")
073: protected List<EjbLocalRef> ejbLocalRef;
074: @XmlElement(name="service-ref")
075: protected List<ServiceRef> serviceRef;
076: @XmlElement(name="security-identity")
077: protected SecurityIdentity securityIdentity;
078: @XmlElement(name="resource-ref")
079: protected List<ResourceRef> resourceRef;
080: @XmlElement(name="resource-env-ref")
081: protected List<ResourceEnvRef> resourceEnvRef;
082: @XmlElement(name="message-destination-ref")
083: protected List<MessageDestinationRef> messageDestinationRef;
084: protected List<Depends> depends;
085: @XmlElement(name="ior-security-config")
086: protected IorSecurityConfig iorSecurityConfig;
087: @XmlElement(name="ejb-timeout-identity")
088: protected EjbTimeoutIdentity ejbTimeoutIdentity;
089:
090: /**
091: * Gets the value of the id property.
092: *
093: * @return
094: * possible object is
095: * {@link String }
096: *
097: */
098: public String getId() {
099: return id;
100: }
101:
102: /**
103: * Sets the value of the id property.
104: *
105: * @param value
106: * allowed object is
107: * {@link String }
108: *
109: */
110: public void setId(String value) {
111: this .id = value;
112: }
113:
114: /**
115: * Gets the value of the ejbName property.
116: *
117: * @return
118: * possible object is
119: * {@link String }
120: *
121: */
122: public String getEjbName() {
123: return ejbName;
124: }
125:
126: /**
127: * Sets the value of the ejbName property.
128: *
129: * @param value
130: * allowed object is
131: * {@link String }
132: *
133: */
134: public void setEjbName(String value) {
135: this .ejbName = value;
136: }
137:
138: /**
139: * Gets the value of the activationConfig property.
140: *
141: * @return
142: * possible object is
143: * {@link ActivationConfig }
144: *
145: */
146: public ActivationConfig getActivationConfig() {
147: return activationConfig;
148: }
149:
150: /**
151: * Sets the value of the activationConfig property.
152: *
153: * @param value
154: * allowed object is
155: * {@link ActivationConfig }
156: *
157: */
158: public void setActivationConfig(ActivationConfig value) {
159: this .activationConfig = value;
160: }
161:
162: /**
163: * Gets the value of the destinationJndiName property.
164: *
165: * @return
166: * possible object is
167: * {@link String }
168: *
169: */
170: public String getDestinationJndiName() {
171: return destinationJndiName;
172: }
173:
174: /**
175: * Sets the value of the destinationJndiName property.
176: *
177: * @param value
178: * allowed object is
179: * {@link String }
180: *
181: */
182: public void setDestinationJndiName(String value) {
183: this .destinationJndiName = value;
184: }
185:
186: /**
187: * Gets the value of the localJndiName property.
188: *
189: * @return
190: * possible object is
191: * {@link String }
192: *
193: */
194: public String getLocalJndiName() {
195: return localJndiName;
196: }
197:
198: /**
199: * Sets the value of the localJndiName property.
200: *
201: * @param value
202: * allowed object is
203: * {@link String }
204: *
205: */
206: public void setLocalJndiName(String value) {
207: this .localJndiName = value;
208: }
209:
210: /**
211: * Gets the value of the mdbUser property.
212: *
213: * @return
214: * possible object is
215: * {@link String }
216: *
217: */
218: public String getMdbUser() {
219: return mdbUser;
220: }
221:
222: /**
223: * Sets the value of the mdbUser property.
224: *
225: * @param value
226: * allowed object is
227: * {@link String }
228: *
229: */
230: public void setMdbUser(String value) {
231: this .mdbUser = value;
232: }
233:
234: /**
235: * Gets the value of the mdbPasswd property.
236: *
237: * @return
238: * possible object is
239: * {@link String }
240: *
241: */
242: public String getMdbPasswd() {
243: return mdbPasswd;
244: }
245:
246: /**
247: * Sets the value of the mdbPasswd property.
248: *
249: * @param value
250: * allowed object is
251: * {@link String }
252: *
253: */
254: public void setMdbPasswd(String value) {
255: this .mdbPasswd = value;
256: }
257:
258: /**
259: * Gets the value of the mdbClientId property.
260: *
261: * @return
262: * possible object is
263: * {@link String }
264: *
265: */
266: public String getMdbClientId() {
267: return mdbClientId;
268: }
269:
270: /**
271: * Sets the value of the mdbClientId property.
272: *
273: * @param value
274: * allowed object is
275: * {@link String }
276: *
277: */
278: public void setMdbClientId(String value) {
279: this .mdbClientId = value;
280: }
281:
282: /**
283: * Gets the value of the mdbSubscriptionId property.
284: *
285: * @return
286: * possible object is
287: * {@link String }
288: *
289: */
290: public String getMdbSubscriptionId() {
291: return mdbSubscriptionId;
292: }
293:
294: /**
295: * Sets the value of the mdbSubscriptionId property.
296: *
297: * @param value
298: * allowed object is
299: * {@link String }
300: *
301: */
302: public void setMdbSubscriptionId(String value) {
303: this .mdbSubscriptionId = value;
304: }
305:
306: /**
307: * Gets the value of the resourceAdapterName property.
308: *
309: * @return
310: * possible object is
311: * {@link String }
312: *
313: */
314: public String getResourceAdapterName() {
315: return resourceAdapterName;
316: }
317:
318: /**
319: * Sets the value of the resourceAdapterName property.
320: *
321: * @param value
322: * allowed object is
323: * {@link String }
324: *
325: */
326: public void setResourceAdapterName(String value) {
327: this .resourceAdapterName = value;
328: }
329:
330: /**
331: * Gets the value of the exceptionOnRollback property.
332: *
333: * @return
334: * possible object is
335: * {@link String }
336: *
337: */
338: public String getExceptionOnRollback() {
339: return exceptionOnRollback;
340: }
341:
342: /**
343: * Sets the value of the exceptionOnRollback property.
344: *
345: * @param value
346: * allowed object is
347: * {@link String }
348: *
349: */
350: public void setExceptionOnRollback(String value) {
351: this .exceptionOnRollback = value;
352: }
353:
354: /**
355: * Gets the value of the timerPersistence property.
356: *
357: * @return
358: * possible object is
359: * {@link String }
360: *
361: */
362: public String getTimerPersistence() {
363: return timerPersistence;
364: }
365:
366: /**
367: * Sets the value of the timerPersistence property.
368: *
369: * @param value
370: * allowed object is
371: * {@link String }
372: *
373: */
374: public void setTimerPersistence(String value) {
375: this .timerPersistence = value;
376: }
377:
378: /**
379: * Gets the value of the configurationName property.
380: *
381: * @return
382: * possible object is
383: * {@link String }
384: *
385: */
386: public String getConfigurationName() {
387: return configurationName;
388: }
389:
390: /**
391: * Sets the value of the configurationName property.
392: *
393: * @param value
394: * allowed object is
395: * {@link String }
396: *
397: */
398: public void setConfigurationName(String value) {
399: this .configurationName = value;
400: }
401:
402: /**
403: * Gets the value of the invokerBindings property.
404: *
405: * @return
406: * possible object is
407: * {@link InvokerBindings }
408: *
409: */
410: public InvokerBindings getInvokerBindings() {
411: return invokerBindings;
412: }
413:
414: /**
415: * Sets the value of the invokerBindings property.
416: *
417: * @param value
418: * allowed object is
419: * {@link InvokerBindings }
420: *
421: */
422: public void setInvokerBindings(InvokerBindings value) {
423: this .invokerBindings = value;
424: }
425:
426: /**
427: * Gets the value of the securityProxy property.
428: *
429: * @return
430: * possible object is
431: * {@link String }
432: *
433: */
434: public String getSecurityProxy() {
435: return securityProxy;
436: }
437:
438: /**
439: * Sets the value of the securityProxy property.
440: *
441: * @param value
442: * allowed object is
443: * {@link String }
444: *
445: */
446: public void setSecurityProxy(String value) {
447: this .securityProxy = value;
448: }
449:
450: /**
451: * Gets the value of the ejbRef property.
452: *
453: * <p>
454: * This accessor method returns a reference to the live list,
455: * not a snapshot. Therefore any modification you make to the
456: * returned list will be present inside the JAXB object.
457: * This is why there is not a <CODE>set</CODE> method for the ejbRef property.
458: *
459: * <p>
460: * For example, to add a new item, do as follows:
461: * <pre>
462: * getEjbRef().add(newItem);
463: * </pre>
464: *
465: *
466: * <p>
467: * Objects of the following type(s) are allowed in the list
468: * {@link EjbRef }
469: *
470: *
471: */
472: public List<EjbRef> getEjbRef() {
473: if (ejbRef == null) {
474: ejbRef = new ArrayList<EjbRef>();
475: }
476: return this .ejbRef;
477: }
478:
479: /**
480: * Gets the value of the ejbLocalRef property.
481: *
482: * <p>
483: * This accessor method returns a reference to the live list,
484: * not a snapshot. Therefore any modification you make to the
485: * returned list will be present inside the JAXB object.
486: * This is why there is not a <CODE>set</CODE> method for the ejbLocalRef property.
487: *
488: * <p>
489: * For example, to add a new item, do as follows:
490: * <pre>
491: * getEjbLocalRef().add(newItem);
492: * </pre>
493: *
494: *
495: * <p>
496: * Objects of the following type(s) are allowed in the list
497: * {@link EjbLocalRef }
498: *
499: *
500: */
501: public List<EjbLocalRef> getEjbLocalRef() {
502: if (ejbLocalRef == null) {
503: ejbLocalRef = new ArrayList<EjbLocalRef>();
504: }
505: return this .ejbLocalRef;
506: }
507:
508: /**
509: * Gets the value of the serviceRef property.
510: *
511: * <p>
512: * This accessor method returns a reference to the live list,
513: * not a snapshot. Therefore any modification you make to the
514: * returned list will be present inside the JAXB object.
515: * This is why there is not a <CODE>set</CODE> method for the serviceRef property.
516: *
517: * <p>
518: * For example, to add a new item, do as follows:
519: * <pre>
520: * getServiceRef().add(newItem);
521: * </pre>
522: *
523: *
524: * <p>
525: * Objects of the following type(s) are allowed in the list
526: * {@link ServiceRef }
527: *
528: *
529: */
530: public List<ServiceRef> getServiceRef() {
531: if (serviceRef == null) {
532: serviceRef = new ArrayList<ServiceRef>();
533: }
534: return this .serviceRef;
535: }
536:
537: /**
538: * Gets the value of the securityIdentity property.
539: *
540: * @return
541: * possible object is
542: * {@link SecurityIdentity }
543: *
544: */
545: public SecurityIdentity getSecurityIdentity() {
546: return securityIdentity;
547: }
548:
549: /**
550: * Sets the value of the securityIdentity property.
551: *
552: * @param value
553: * allowed object is
554: * {@link SecurityIdentity }
555: *
556: */
557: public void setSecurityIdentity(SecurityIdentity value) {
558: this .securityIdentity = value;
559: }
560:
561: /**
562: * Gets the value of the resourceRef property.
563: *
564: * <p>
565: * This accessor method returns a reference to the live list,
566: * not a snapshot. Therefore any modification you make to the
567: * returned list will be present inside the JAXB object.
568: * This is why there is not a <CODE>set</CODE> method for the resourceRef property.
569: *
570: * <p>
571: * For example, to add a new item, do as follows:
572: * <pre>
573: * getResourceRef().add(newItem);
574: * </pre>
575: *
576: *
577: * <p>
578: * Objects of the following type(s) are allowed in the list
579: * {@link ResourceRef }
580: *
581: *
582: */
583: public List<ResourceRef> getResourceRef() {
584: if (resourceRef == null) {
585: resourceRef = new ArrayList<ResourceRef>();
586: }
587: return this .resourceRef;
588: }
589:
590: /**
591: * Gets the value of the resourceEnvRef property.
592: *
593: * <p>
594: * This accessor method returns a reference to the live list,
595: * not a snapshot. Therefore any modification you make to the
596: * returned list will be present inside the JAXB object.
597: * This is why there is not a <CODE>set</CODE> method for the resourceEnvRef property.
598: *
599: * <p>
600: * For example, to add a new item, do as follows:
601: * <pre>
602: * getResourceEnvRef().add(newItem);
603: * </pre>
604: *
605: *
606: * <p>
607: * Objects of the following type(s) are allowed in the list
608: * {@link ResourceEnvRef }
609: *
610: *
611: */
612: public List<ResourceEnvRef> getResourceEnvRef() {
613: if (resourceEnvRef == null) {
614: resourceEnvRef = new ArrayList<ResourceEnvRef>();
615: }
616: return this .resourceEnvRef;
617: }
618:
619: /**
620: * Gets the value of the messageDestinationRef property.
621: *
622: * <p>
623: * This accessor method returns a reference to the live list,
624: * not a snapshot. Therefore any modification you make to the
625: * returned list will be present inside the JAXB object.
626: * This is why there is not a <CODE>set</CODE> method for the messageDestinationRef property.
627: *
628: * <p>
629: * For example, to add a new item, do as follows:
630: * <pre>
631: * getMessageDestinationRef().add(newItem);
632: * </pre>
633: *
634: *
635: * <p>
636: * Objects of the following type(s) are allowed in the list
637: * {@link MessageDestinationRef }
638: *
639: *
640: */
641: public List<MessageDestinationRef> getMessageDestinationRef() {
642: if (messageDestinationRef == null) {
643: messageDestinationRef = new ArrayList<MessageDestinationRef>();
644: }
645: return this .messageDestinationRef;
646: }
647:
648: /**
649: * Gets the value of the depends property.
650: *
651: * <p>
652: * This accessor method returns a reference to the live list,
653: * not a snapshot. Therefore any modification you make to the
654: * returned list will be present inside the JAXB object.
655: * This is why there is not a <CODE>set</CODE> method for the depends property.
656: *
657: * <p>
658: * For example, to add a new item, do as follows:
659: * <pre>
660: * getDepends().add(newItem);
661: * </pre>
662: *
663: *
664: * <p>
665: * Objects of the following type(s) are allowed in the list
666: * {@link Depends }
667: *
668: *
669: */
670: public List<Depends> getDepends() {
671: if (depends == null) {
672: depends = new ArrayList<Depends>();
673: }
674: return this .depends;
675: }
676:
677: /**
678: * Gets the value of the iorSecurityConfig property.
679: *
680: * @return
681: * possible object is
682: * {@link IorSecurityConfig }
683: *
684: */
685: public IorSecurityConfig getIorSecurityConfig() {
686: return iorSecurityConfig;
687: }
688:
689: /**
690: * Sets the value of the iorSecurityConfig property.
691: *
692: * @param value
693: * allowed object is
694: * {@link IorSecurityConfig }
695: *
696: */
697: public void setIorSecurityConfig(IorSecurityConfig value) {
698: this .iorSecurityConfig = value;
699: }
700:
701: /**
702: * Gets the value of the ejbTimeoutIdentity property.
703: *
704: * @return
705: * possible object is
706: * {@link EjbTimeoutIdentity }
707: *
708: */
709: public EjbTimeoutIdentity getEjbTimeoutIdentity() {
710: return ejbTimeoutIdentity;
711: }
712:
713: /**
714: * Sets the value of the ejbTimeoutIdentity property.
715: *
716: * @param value
717: * allowed object is
718: * {@link EjbTimeoutIdentity }
719: *
720: */
721: public void setEjbTimeoutIdentity(EjbTimeoutIdentity value) {
722: this.ejbTimeoutIdentity = value;
723: }
724:
725: }
|