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.sun;
017:
018: import org.apache.openejb.jee.KeyedCollection;
019:
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.XmlType;
025: import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
026: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
027: import java.util.ArrayList;
028: import java.util.Collection;
029: import java.util.List;
030: import java.util.Map;
031:
032: @XmlAccessorType(XmlAccessType.FIELD)
033: @XmlType(name="",propOrder={"ejbName","jndiName","ejbRef","resourceRef","resourceEnvRef","serviceRef","messageDestinationRef","passByReference","cmp","principal","mdbConnectionFactory","jmsDurableSubscriptionName","jmsMaxMessagesLoad","iorSecurityConfig","isReadOnlyBean","refreshPeriodInSeconds","commitOption","cmtTimeoutInSeconds","useThreadPoolId","genClasses","beanPool","beanCache","mdbResourceAdapter","webserviceEndpoint","flushAtEndOfMethod","checkpointedMethods","checkpointAtEndOfMethod"})
034: public class Ejb {
035: @XmlAttribute(name="availability-enabled")
036: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
037: protected String availabilityEnabled;
038: @XmlElement(name="ejb-name",required=true)
039: protected String ejbName;
040: @XmlElement(name="jndi-name")
041: protected String jndiName;
042: @XmlElement(name="ejb-ref")
043: protected List<EjbRef> ejbRef;
044: @XmlElement(name="resource-ref")
045: protected List<ResourceRef> resourceRef;
046: @XmlElement(name="resource-env-ref")
047: protected List<ResourceEnvRef> resourceEnvRef;
048: @XmlElement(name="service-ref")
049: protected List<ServiceRef> serviceRef;
050: @XmlElement(name="message-destination-ref")
051: protected List<MessageDestinationRef> messageDestinationRef;
052: @XmlElement(name="pass-by-reference")
053: protected String passByReference;
054: protected Cmp cmp;
055: protected Principal principal;
056: @XmlElement(name="mdb-connection-factory")
057: protected MdbConnectionFactory mdbConnectionFactory;
058: @XmlElement(name="jms-durable-subscription-name")
059: protected String jmsDurableSubscriptionName;
060: @XmlElement(name="jms-max-messages-load")
061: protected String jmsMaxMessagesLoad;
062: @XmlElement(name="ior-security-config")
063: protected IorSecurityConfig iorSecurityConfig;
064: @XmlElement(name="is-read-only-bean")
065: protected String isReadOnlyBean;
066: @XmlElement(name="refresh-period-in-seconds")
067: protected String refreshPeriodInSeconds;
068: @XmlElement(name="commit-option")
069: protected String commitOption;
070: @XmlElement(name="cmt-timeout-in-seconds")
071: protected String cmtTimeoutInSeconds;
072: @XmlElement(name="use-thread-pool-id")
073: protected String useThreadPoolId;
074: @XmlElement(name="gen-classes")
075: protected GenClasses genClasses;
076: @XmlElement(name="bean-pool")
077: protected BeanPool beanPool;
078: @XmlElement(name="bean-cache")
079: protected BeanCache beanCache;
080: @XmlElement(name="mdb-resource-adapter")
081: protected MdbResourceAdapter mdbResourceAdapter;
082: @XmlElement(name="webservice-endpoint")
083: protected KeyedCollection<String, WebserviceEndpoint> webserviceEndpoint;
084: @XmlElement(name="flush-at-end-of-method")
085: protected FlushAtEndOfMethod flushAtEndOfMethod;
086: @XmlElement(name="checkpointed-methods")
087: protected String checkpointedMethods;
088: @XmlElement(name="checkpoint-at-end-of-method")
089: protected CheckpointAtEndOfMethod checkpointAtEndOfMethod;
090:
091: public String getAvailabilityEnabled() {
092: return availabilityEnabled;
093: }
094:
095: public void setAvailabilityEnabled(String value) {
096: this .availabilityEnabled = value;
097: }
098:
099: public String getEjbName() {
100: return ejbName;
101: }
102:
103: public void setEjbName(String value) {
104: this .ejbName = value;
105: }
106:
107: public String getJndiName() {
108: return jndiName;
109: }
110:
111: public void setJndiName(String value) {
112: this .jndiName = value;
113: }
114:
115: public List<EjbRef> getEjbRef() {
116: if (ejbRef == null) {
117: ejbRef = new ArrayList<EjbRef>();
118: }
119: return this .ejbRef;
120: }
121:
122: public List<ResourceRef> getResourceRef() {
123: if (resourceRef == null) {
124: resourceRef = new ArrayList<ResourceRef>();
125: }
126: return this .resourceRef;
127: }
128:
129: public List<ResourceEnvRef> getResourceEnvRef() {
130: if (resourceEnvRef == null) {
131: resourceEnvRef = new ArrayList<ResourceEnvRef>();
132: }
133: return this .resourceEnvRef;
134: }
135:
136: public List<ServiceRef> getServiceRef() {
137: if (serviceRef == null) {
138: serviceRef = new ArrayList<ServiceRef>();
139: }
140: return this .serviceRef;
141: }
142:
143: public List<MessageDestinationRef> getMessageDestinationRef() {
144: if (messageDestinationRef == null) {
145: messageDestinationRef = new ArrayList<MessageDestinationRef>();
146: }
147: return this .messageDestinationRef;
148: }
149:
150: public String getPassByReference() {
151: return passByReference;
152: }
153:
154: public void setPassByReference(String value) {
155: this .passByReference = value;
156: }
157:
158: public Cmp getCmp() {
159: return cmp;
160: }
161:
162: public void setCmp(Cmp value) {
163: this .cmp = value;
164: }
165:
166: public Principal getPrincipal() {
167: return principal;
168: }
169:
170: public void setPrincipal(Principal value) {
171: this .principal = value;
172: }
173:
174: public MdbConnectionFactory getMdbConnectionFactory() {
175: return mdbConnectionFactory;
176: }
177:
178: public void setMdbConnectionFactory(MdbConnectionFactory value) {
179: this .mdbConnectionFactory = value;
180: }
181:
182: public String getJmsDurableSubscriptionName() {
183: return jmsDurableSubscriptionName;
184: }
185:
186: public void setJmsDurableSubscriptionName(String value) {
187: this .jmsDurableSubscriptionName = value;
188: }
189:
190: public String getJmsMaxMessagesLoad() {
191: return jmsMaxMessagesLoad;
192: }
193:
194: public void setJmsMaxMessagesLoad(String value) {
195: this .jmsMaxMessagesLoad = value;
196: }
197:
198: public IorSecurityConfig getIorSecurityConfig() {
199: return iorSecurityConfig;
200: }
201:
202: public void setIorSecurityConfig(IorSecurityConfig value) {
203: this .iorSecurityConfig = value;
204: }
205:
206: public String getIsReadOnlyBean() {
207: return isReadOnlyBean;
208: }
209:
210: public void setIsReadOnlyBean(String value) {
211: this .isReadOnlyBean = value;
212: }
213:
214: public String getRefreshPeriodInSeconds() {
215: return refreshPeriodInSeconds;
216: }
217:
218: public void setRefreshPeriodInSeconds(String value) {
219: this .refreshPeriodInSeconds = value;
220: }
221:
222: public String getCommitOption() {
223: return commitOption;
224: }
225:
226: public void setCommitOption(String value) {
227: this .commitOption = value;
228: }
229:
230: public String getCmtTimeoutInSeconds() {
231: return cmtTimeoutInSeconds;
232: }
233:
234: public void setCmtTimeoutInSeconds(String value) {
235: this .cmtTimeoutInSeconds = value;
236: }
237:
238: public String getUseThreadPoolId() {
239: return useThreadPoolId;
240: }
241:
242: public void setUseThreadPoolId(String value) {
243: this .useThreadPoolId = value;
244: }
245:
246: public GenClasses getGenClasses() {
247: return genClasses;
248: }
249:
250: public void setGenClasses(GenClasses value) {
251: this .genClasses = value;
252: }
253:
254: public BeanPool getBeanPool() {
255: return beanPool;
256: }
257:
258: public void setBeanPool(BeanPool value) {
259: this .beanPool = value;
260: }
261:
262: public BeanCache getBeanCache() {
263: return beanCache;
264: }
265:
266: public void setBeanCache(BeanCache value) {
267: this .beanCache = value;
268: }
269:
270: public MdbResourceAdapter getMdbResourceAdapter() {
271: return mdbResourceAdapter;
272: }
273:
274: public void setMdbResourceAdapter(MdbResourceAdapter value) {
275: this .mdbResourceAdapter = value;
276: }
277:
278: public Collection<WebserviceEndpoint> getWebserviceEndpoint() {
279: if (webserviceEndpoint == null) {
280: webserviceEndpoint = new KeyedCollection<String, WebserviceEndpoint>();
281: }
282: return this .webserviceEndpoint;
283: }
284:
285: public Map<String, WebserviceEndpoint> getWebserviceEndpointMap() {
286: if (webserviceEndpoint == null) {
287: webserviceEndpoint = new KeyedCollection<String, WebserviceEndpoint>();
288: }
289: return this .webserviceEndpoint.toMap();
290: }
291:
292: public FlushAtEndOfMethod getFlushAtEndOfMethod() {
293: return flushAtEndOfMethod;
294: }
295:
296: public void setFlushAtEndOfMethod(FlushAtEndOfMethod value) {
297: this .flushAtEndOfMethod = value;
298: }
299:
300: public String getCheckpointedMethods() {
301: return checkpointedMethods;
302: }
303:
304: public void setCheckpointedMethods(String value) {
305: this .checkpointedMethods = value;
306: }
307:
308: public CheckpointAtEndOfMethod getCheckpointAtEndOfMethod() {
309: return checkpointAtEndOfMethod;
310: }
311:
312: public void setCheckpointAtEndOfMethod(CheckpointAtEndOfMethod value) {
313: this.checkpointAtEndOfMethod = value;
314: }
315: }
|