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.XmlRootElement;
025: import javax.xml.bind.annotation.XmlType;
026: import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
027: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
028:
029: /**
030: *
031: */
032: @XmlAccessorType(XmlAccessType.FIELD)
033: @XmlType(name="",propOrder={"containerName","callLogging","invokerProxyBindingName","syncOnCommitOnly","insertAfterEjbPostCreate","callEjbStoreOnClean","storeNotFlushed","containerInterceptors","instancePool","instanceCache","persistenceManager","webClassLoader","lockingPolicy","containerCacheConf","containerPoolConf","commitOption","optiondRefreshRate","securityDomain","clusterConfig","depends"})
034: @XmlRootElement(name="container-configuration")
035: public class ContainerConfiguration {
036:
037: @XmlAttribute(name="extends")
038: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
039: protected String _extends;
040: @XmlElement(name="container-name",required=true)
041: protected String containerName;
042: @XmlElement(name="call-logging")
043: protected String callLogging;
044: @XmlElement(name="invoker-proxy-binding-name")
045: protected String invokerProxyBindingName;
046: @XmlElement(name="sync-on-commit-only")
047: protected String syncOnCommitOnly;
048: @XmlElement(name="insert-after-ejb-post-create")
049: protected String insertAfterEjbPostCreate;
050: @XmlElement(name="call-ejb-store-on-clean")
051: protected String callEjbStoreOnClean;
052: @XmlElement(name="store-not-flushed")
053: protected String storeNotFlushed;
054: @XmlElement(name="container-interceptors")
055: protected ContainerInterceptors containerInterceptors;
056: @XmlElement(name="instance-pool")
057: protected String instancePool;
058: @XmlElement(name="instance-cache")
059: protected String instanceCache;
060: @XmlElement(name="persistence-manager")
061: protected String persistenceManager;
062: @XmlElement(name="web-class-loader")
063: protected String webClassLoader;
064: @XmlElement(name="locking-policy")
065: protected String lockingPolicy;
066: @XmlElement(name="container-cache-conf")
067: protected ContainerCacheConf containerCacheConf;
068: @XmlElement(name="container-pool-conf")
069: protected ContainerPoolConf containerPoolConf;
070: @XmlElement(name="commit-option")
071: protected String commitOption;
072: @XmlElement(name="optiond-refresh-rate")
073: protected String optiondRefreshRate;
074: @XmlElement(name="security-domain")
075: protected String securityDomain;
076: @XmlElement(name="cluster-config")
077: protected ClusterConfig clusterConfig;
078: protected List<Depends> depends;
079:
080: /**
081: * Gets the value of the extends property.
082: *
083: * @return
084: * possible object is
085: * {@link String }
086: *
087: */
088: public String getExtends() {
089: return _extends;
090: }
091:
092: /**
093: * Sets the value of the extends property.
094: *
095: * @param value
096: * allowed object is
097: * {@link String }
098: *
099: */
100: public void setExtends(String value) {
101: this ._extends = value;
102: }
103:
104: /**
105: * Gets the value of the containerName property.
106: *
107: * @return
108: * possible object is
109: * {@link String }
110: *
111: */
112: public String getContainerName() {
113: return containerName;
114: }
115:
116: /**
117: * Sets the value of the containerName property.
118: *
119: * @param value
120: * allowed object is
121: * {@link String }
122: *
123: */
124: public void setContainerName(String value) {
125: this .containerName = value;
126: }
127:
128: /**
129: * Gets the value of the callLogging property.
130: *
131: * @return
132: * possible object is
133: * {@link String }
134: *
135: */
136: public String getCallLogging() {
137: return callLogging;
138: }
139:
140: /**
141: * Sets the value of the callLogging property.
142: *
143: * @param value
144: * allowed object is
145: * {@link String }
146: *
147: */
148: public void setCallLogging(String value) {
149: this .callLogging = value;
150: }
151:
152: /**
153: * Gets the value of the invokerProxyBindingName property.
154: *
155: * @return
156: * possible object is
157: * {@link String }
158: *
159: */
160: public String getInvokerProxyBindingName() {
161: return invokerProxyBindingName;
162: }
163:
164: /**
165: * Sets the value of the invokerProxyBindingName property.
166: *
167: * @param value
168: * allowed object is
169: * {@link String }
170: *
171: */
172: public void setInvokerProxyBindingName(String value) {
173: this .invokerProxyBindingName = value;
174: }
175:
176: /**
177: * Gets the value of the syncOnCommitOnly property.
178: *
179: * @return
180: * possible object is
181: * {@link String }
182: *
183: */
184: public String getSyncOnCommitOnly() {
185: return syncOnCommitOnly;
186: }
187:
188: /**
189: * Sets the value of the syncOnCommitOnly property.
190: *
191: * @param value
192: * allowed object is
193: * {@link String }
194: *
195: */
196: public void setSyncOnCommitOnly(String value) {
197: this .syncOnCommitOnly = value;
198: }
199:
200: /**
201: * Gets the value of the insertAfterEjbPostCreate property.
202: *
203: * @return
204: * possible object is
205: * {@link String }
206: *
207: */
208: public String getInsertAfterEjbPostCreate() {
209: return insertAfterEjbPostCreate;
210: }
211:
212: /**
213: * Sets the value of the insertAfterEjbPostCreate property.
214: *
215: * @param value
216: * allowed object is
217: * {@link String }
218: *
219: */
220: public void setInsertAfterEjbPostCreate(String value) {
221: this .insertAfterEjbPostCreate = value;
222: }
223:
224: /**
225: * Gets the value of the callEjbStoreOnClean property.
226: *
227: * @return
228: * possible object is
229: * {@link String }
230: *
231: */
232: public String getCallEjbStoreOnClean() {
233: return callEjbStoreOnClean;
234: }
235:
236: /**
237: * Sets the value of the callEjbStoreOnClean property.
238: *
239: * @param value
240: * allowed object is
241: * {@link String }
242: *
243: */
244: public void setCallEjbStoreOnClean(String value) {
245: this .callEjbStoreOnClean = value;
246: }
247:
248: /**
249: * Gets the value of the storeNotFlushed property.
250: *
251: * @return
252: * possible object is
253: * {@link String }
254: *
255: */
256: public String getStoreNotFlushed() {
257: return storeNotFlushed;
258: }
259:
260: /**
261: * Sets the value of the storeNotFlushed property.
262: *
263: * @param value
264: * allowed object is
265: * {@link String }
266: *
267: */
268: public void setStoreNotFlushed(String value) {
269: this .storeNotFlushed = value;
270: }
271:
272: /**
273: * Gets the value of the containerInterceptors property.
274: *
275: * @return
276: * possible object is
277: * {@link ContainerInterceptors }
278: *
279: */
280: public ContainerInterceptors getContainerInterceptors() {
281: return containerInterceptors;
282: }
283:
284: /**
285: * Sets the value of the containerInterceptors property.
286: *
287: * @param value
288: * allowed object is
289: * {@link ContainerInterceptors }
290: *
291: */
292: public void setContainerInterceptors(ContainerInterceptors value) {
293: this .containerInterceptors = value;
294: }
295:
296: /**
297: * Gets the value of the instancePool property.
298: *
299: * @return
300: * possible object is
301: * {@link String }
302: *
303: */
304: public String getInstancePool() {
305: return instancePool;
306: }
307:
308: /**
309: * Sets the value of the instancePool property.
310: *
311: * @param value
312: * allowed object is
313: * {@link String }
314: *
315: */
316: public void setInstancePool(String value) {
317: this .instancePool = value;
318: }
319:
320: /**
321: * Gets the value of the instanceCache property.
322: *
323: * @return
324: * possible object is
325: * {@link String }
326: *
327: */
328: public String getInstanceCache() {
329: return instanceCache;
330: }
331:
332: /**
333: * Sets the value of the instanceCache property.
334: *
335: * @param value
336: * allowed object is
337: * {@link String }
338: *
339: */
340: public void setInstanceCache(String value) {
341: this .instanceCache = value;
342: }
343:
344: /**
345: * Gets the value of the persistenceManager property.
346: *
347: * @return
348: * possible object is
349: * {@link String }
350: *
351: */
352: public String getPersistenceManager() {
353: return persistenceManager;
354: }
355:
356: /**
357: * Sets the value of the persistenceManager property.
358: *
359: * @param value
360: * allowed object is
361: * {@link String }
362: *
363: */
364: public void setPersistenceManager(String value) {
365: this .persistenceManager = value;
366: }
367:
368: /**
369: * Gets the value of the webClassLoader property.
370: *
371: * @return
372: * possible object is
373: * {@link String }
374: *
375: */
376: public String getWebClassLoader() {
377: return webClassLoader;
378: }
379:
380: /**
381: * Sets the value of the webClassLoader property.
382: *
383: * @param value
384: * allowed object is
385: * {@link String }
386: *
387: */
388: public void setWebClassLoader(String value) {
389: this .webClassLoader = value;
390: }
391:
392: /**
393: * Gets the value of the lockingPolicy property.
394: *
395: * @return
396: * possible object is
397: * {@link String }
398: *
399: */
400: public String getLockingPolicy() {
401: return lockingPolicy;
402: }
403:
404: /**
405: * Sets the value of the lockingPolicy property.
406: *
407: * @param value
408: * allowed object is
409: * {@link String }
410: *
411: */
412: public void setLockingPolicy(String value) {
413: this .lockingPolicy = value;
414: }
415:
416: /**
417: * Gets the value of the containerCacheConf property.
418: *
419: * @return
420: * possible object is
421: * {@link ContainerCacheConf }
422: *
423: */
424: public ContainerCacheConf getContainerCacheConf() {
425: return containerCacheConf;
426: }
427:
428: /**
429: * Sets the value of the containerCacheConf property.
430: *
431: * @param value
432: * allowed object is
433: * {@link ContainerCacheConf }
434: *
435: */
436: public void setContainerCacheConf(ContainerCacheConf value) {
437: this .containerCacheConf = value;
438: }
439:
440: /**
441: * Gets the value of the containerPoolConf property.
442: *
443: * @return
444: * possible object is
445: * {@link ContainerPoolConf }
446: *
447: */
448: public ContainerPoolConf getContainerPoolConf() {
449: return containerPoolConf;
450: }
451:
452: /**
453: * Sets the value of the containerPoolConf property.
454: *
455: * @param value
456: * allowed object is
457: * {@link ContainerPoolConf }
458: *
459: */
460: public void setContainerPoolConf(ContainerPoolConf value) {
461: this .containerPoolConf = value;
462: }
463:
464: /**
465: * Gets the value of the commitOption property.
466: *
467: * @return
468: * possible object is
469: * {@link String }
470: *
471: */
472: public String getCommitOption() {
473: return commitOption;
474: }
475:
476: /**
477: * Sets the value of the commitOption property.
478: *
479: * @param value
480: * allowed object is
481: * {@link String }
482: *
483: */
484: public void setCommitOption(String value) {
485: this .commitOption = value;
486: }
487:
488: /**
489: * Gets the value of the optiondRefreshRate property.
490: *
491: * @return
492: * possible object is
493: * {@link String }
494: *
495: */
496: public String getOptiondRefreshRate() {
497: return optiondRefreshRate;
498: }
499:
500: /**
501: * Sets the value of the optiondRefreshRate property.
502: *
503: * @param value
504: * allowed object is
505: * {@link String }
506: *
507: */
508: public void setOptiondRefreshRate(String value) {
509: this .optiondRefreshRate = value;
510: }
511:
512: /**
513: * Gets the value of the securityDomain property.
514: *
515: * @return
516: * possible object is
517: * {@link String }
518: *
519: */
520: public String getSecurityDomain() {
521: return securityDomain;
522: }
523:
524: /**
525: * Sets the value of the securityDomain property.
526: *
527: * @param value
528: * allowed object is
529: * {@link String }
530: *
531: */
532: public void setSecurityDomain(String value) {
533: this .securityDomain = value;
534: }
535:
536: /**
537: * Gets the value of the clusterConfig property.
538: *
539: * @return
540: * possible object is
541: * {@link ClusterConfig }
542: *
543: */
544: public ClusterConfig getClusterConfig() {
545: return clusterConfig;
546: }
547:
548: /**
549: * Sets the value of the clusterConfig property.
550: *
551: * @param value
552: * allowed object is
553: * {@link ClusterConfig }
554: *
555: */
556: public void setClusterConfig(ClusterConfig value) {
557: this .clusterConfig = value;
558: }
559:
560: /**
561: * Gets the value of the depends property.
562: *
563: * <p>
564: * This accessor method returns a reference to the live list,
565: * not a snapshot. Therefore any modification you make to the
566: * returned list will be present inside the JAXB object.
567: * This is why there is not a <CODE>set</CODE> method for the depends property.
568: *
569: * <p>
570: * For example, to add a new item, do as follows:
571: * <pre>
572: * getDepends().add(newItem);
573: * </pre>
574: *
575: *
576: * <p>
577: * Objects of the following type(s) are allowed in the list
578: * {@link Depends }
579: *
580: *
581: */
582: public List<Depends> getDepends() {
583: if (depends == null) {
584: depends = new ArrayList<Depends>();
585: }
586: return this.depends;
587: }
588:
589: }
|