001: /**
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: *
008: * modify it under the terms of the GNU Lesser General Public
009: * License as published by the Free Software Foundation; either
010: * version 2.1 of the License, or 1any later version.
011: *
012: * This library is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this library; if not, write to the Free Software
019: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
020: * USA
021: *
022: * Initial developer: Eric Hardesty
023: * --------------------------------------------------------------------------
024: * $Id: ResourceadapterDesc.java 6250 2005-02-08 23:46:26Z ehardesty $
025: * --------------------------------------------------------------------------
026: */package org.objectweb.jonas_rar.deployment.api;
027:
028: import java.io.Serializable;
029: import java.util.List;
030:
031: import org.objectweb.jonas_rar.deployment.xml.InboundResourceadapter;
032: import org.objectweb.jonas_rar.deployment.xml.OutboundResourceadapter;
033: import org.objectweb.jonas_rar.deployment.xml.Resourceadapter;
034:
035: /**
036: * This class defines the implementation of the element resourceadapter
037: *
038: * @author Florent Benoit
039: */
040:
041: public class ResourceadapterDesc implements Serializable {
042:
043: /**
044: * resourceadapter-class
045: */
046: private String resourceadapterClass = null;
047:
048: /**
049: * managedconnectionfactory-class
050: */
051: private String managedconnectionfactoryClass = null;
052:
053: /**
054: * connectionfactory-interface
055: */
056: private String connectionfactoryInterface = null;
057:
058: /**
059: * connectionfactory-impl-class
060: */
061: private String connectionfactoryImplClass = null;
062:
063: /**
064: * connection-interface
065: */
066: private String connectionInterface = null;
067:
068: /**
069: * connection-impl-class
070: */
071: private String connectionImplClass = null;
072:
073: /**
074: * transaction-support
075: */
076: private String transactionSupport = null;
077:
078: /**
079: * config-property
080: */
081: private List configPropertyList = null;
082:
083: /**
084: * authentication-mechanism
085: */
086: private List authenticationMechanismList = null;
087:
088: /**
089: * outbound-resourceadapter
090: */
091: private OutboundResourceadapterDesc outboundResourceadapterDesc = null;
092:
093: /**
094: * inbound-resourceadapter
095: */
096: private InboundResourceadapterDesc inboundResourceadapterDesc = null;
097:
098: /**
099: * adminobject
100: */
101: private List adminobjectList = null;
102:
103: /**
104: * reauthentication-support
105: */
106: private String reauthenticationSupport = null;
107:
108: /**
109: * security-permission
110: */
111: private List securityPermissionList = null;
112:
113: /**
114: * Constructor
115: */
116: public ResourceadapterDesc(Resourceadapter ra) {
117: if (ra != null) {
118: resourceadapterClass = ra.getResourceadapterClass();
119: managedconnectionfactoryClass = ra
120: .getManagedconnectionfactoryClass();
121: connectionfactoryInterface = ra
122: .getConnectionfactoryInterface();
123: connectionfactoryImplClass = ra
124: .getConnectionfactoryImplClass();
125: connectionInterface = ra.getConnectionInterface();
126: connectionImplClass = ra.getConnectionImplClass();
127: transactionSupport = ra.getTransactionSupport();
128: configPropertyList = Utility.configProperty(ra
129: .getConfigPropertyList());
130: authenticationMechanismList = Utility
131: .authenticationMechanism(ra
132: .getAuthenticationMechanismList());
133: outboundResourceadapterDesc = new OutboundResourceadapterDesc(
134: ra.getOutboundResourceadapter());
135: inboundResourceadapterDesc = new InboundResourceadapterDesc(
136: ra.getInboundResourceadapter());
137: adminobjectList = Utility.adminobject(ra
138: .getAdminobjectList());
139: reauthenticationSupport = ra.getReauthenticationSupport();
140: securityPermissionList = Utility.securityPermission(ra
141: .getSecurityPermissionList());
142: }
143: }
144:
145: /**
146: * Gets the resourceadapter-class
147: * @return the resourceadapter-class
148: */
149: public String getResourceadapterClass() {
150: return resourceadapterClass;
151: }
152:
153: /**
154: * Gets the managedconnectionfactory-class
155: * @return the managedconnectionfactory-class
156: */
157: public String getManagedconnectionfactoryClass() {
158: return managedconnectionfactoryClass;
159: }
160:
161: /**
162: * Gets the connectionfactory-interface
163: * @return the connectionfactory-interface
164: */
165: public String getConnectionfactoryInterface() {
166: return connectionfactoryInterface;
167: }
168:
169: /**
170: * Gets the connectionfactory-impl-class
171: * @return the connectionfactory-impl-class
172: */
173: public String getConnectionfactoryImplClass() {
174: return connectionfactoryImplClass;
175: }
176:
177: /**
178: * Gets the connection-interface
179: * @return the connection-interface
180: */
181: public String getConnectionInterface() {
182: return connectionInterface;
183: }
184:
185: /**
186: * Gets the connection-impl-class
187: * @return the connection-impl-class
188: */
189: public String getConnectionImplClass() {
190: return connectionImplClass;
191: }
192:
193: /**
194: * Gets the transaction-support
195: * @return the transaction-support
196: */
197: public String getTransactionSupport() {
198: return transactionSupport;
199: }
200:
201: /**
202: * Gets the config-property
203: * @return the config-property
204: */
205: public List getConfigPropertyList() {
206: return configPropertyList;
207: }
208:
209: /**
210: * Gets the authentication-mechanism
211: * @return the authentication-mechanism
212: */
213: public List getAuthenticationMechanismList() {
214: return authenticationMechanismList;
215: }
216:
217: /**
218: * Gets the outbound-resourceadapter
219: * @return the outbound-resourceadapter
220: */
221: public OutboundResourceadapterDesc getOutboundResourceadapterDesc() {
222: return outboundResourceadapterDesc;
223: }
224:
225: /**
226: * Gets the inbound-resourceadapter
227: * @return the inbound-resourceadapter
228: */
229: public InboundResourceadapterDesc getInboundResourceadapterDesc() {
230: return inboundResourceadapterDesc;
231: }
232:
233: /**
234: * Gets the adminobject
235: * @return the adminobject
236: */
237: public List getAdminobjectList() {
238: return adminobjectList;
239: }
240:
241: /**
242: * Gets the reauthentication-support
243: * @return the reauthentication-support
244: */
245: public String getReauthenticationSupport() {
246: return reauthenticationSupport;
247: }
248:
249: /**
250: * Gets the security-permission
251: * @return the security-permission
252: */
253: public List getSecurityPermissionList() {
254: return securityPermissionList;
255: }
256:
257: }
|