KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas_rar > deployment > api > ResourceadapterDesc


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  *
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or 1any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20  * USA
21  *
22  * Initial developer: Eric Hardesty
23  * --------------------------------------------------------------------------
24  * $Id: ResourceadapterDesc.java,v 1.3 2005/02/08 23:46:26 ehardesty Exp $
25  * --------------------------------------------------------------------------
26  */

27 package org.objectweb.jonas_rar.deployment.api;
28
29 import java.io.Serializable JavaDoc;
30 import java.util.List JavaDoc;
31
32 import org.objectweb.jonas_rar.deployment.xml.InboundResourceadapter;
33 import org.objectweb.jonas_rar.deployment.xml.OutboundResourceadapter;
34 import org.objectweb.jonas_rar.deployment.xml.Resourceadapter;
35 /**
36  * This class defines the implementation of the element resourceadapter
37  *
38  * @author Florent Benoit
39  */

40
41 public class ResourceadapterDesc implements Serializable JavaDoc {
42
43     /**
44      * resourceadapter-class
45      */

46     private String JavaDoc resourceadapterClass = null;
47
48     /**
49      * managedconnectionfactory-class
50      */

51     private String JavaDoc managedconnectionfactoryClass = null;
52
53     /**
54      * connectionfactory-interface
55      */

56     private String JavaDoc connectionfactoryInterface = null;
57
58     /**
59      * connectionfactory-impl-class
60      */

61     private String JavaDoc connectionfactoryImplClass = null;
62
63     /**
64      * connection-interface
65      */

66     private String JavaDoc connectionInterface = null;
67
68     /**
69      * connection-impl-class
70      */

71     private String JavaDoc connectionImplClass = null;
72
73     /**
74      * transaction-support
75      */

76     private String JavaDoc transactionSupport = null;
77
78     /**
79      * config-property
80      */

81     private List JavaDoc configPropertyList = null;
82
83     /**
84      * authentication-mechanism
85      */

86     private List JavaDoc authenticationMechanismList = null;
87
88     /**
89      * outbound-resourceadapter
90      */

91     private OutboundResourceadapterDesc outboundResourceadapterDesc = null;
92
93     /**
94      * inbound-resourceadapter
95      */

96     private InboundResourceadapterDesc inboundResourceadapterDesc = null;
97
98     /**
99      * adminobject
100      */

101     private List JavaDoc adminobjectList = null;
102
103     /**
104      * reauthentication-support
105      */

106     private String JavaDoc reauthenticationSupport = null;
107
108     /**
109      * security-permission
110      */

111     private List JavaDoc securityPermissionList = null;
112
113
114     /**
115      * Constructor
116      */

117     public ResourceadapterDesc(Resourceadapter ra) {
118         if (ra != null) {
119             resourceadapterClass = ra.getResourceadapterClass();
120             managedconnectionfactoryClass = ra.getManagedconnectionfactoryClass();
121             connectionfactoryInterface = ra.getConnectionfactoryInterface();
122             connectionfactoryImplClass = ra.getConnectionfactoryImplClass();
123             connectionInterface = ra.getConnectionInterface();
124             connectionImplClass = ra.getConnectionImplClass();
125             transactionSupport = ra.getTransactionSupport();
126             configPropertyList = Utility.configProperty(ra.getConfigPropertyList());
127             authenticationMechanismList = Utility.authenticationMechanism(ra.getAuthenticationMechanismList());
128             outboundResourceadapterDesc = new OutboundResourceadapterDesc(ra.getOutboundResourceadapter());
129             inboundResourceadapterDesc = new InboundResourceadapterDesc(ra.getInboundResourceadapter());
130             adminobjectList = Utility.adminobject(ra.getAdminobjectList());
131             reauthenticationSupport = ra.getReauthenticationSupport();
132             securityPermissionList = Utility.securityPermission(ra.getSecurityPermissionList());
133         }
134     }
135
136     /**
137      * Gets the resourceadapter-class
138      * @return the resourceadapter-class
139      */

140     public String JavaDoc getResourceadapterClass() {
141         return resourceadapterClass;
142     }
143
144     /**
145      * Gets the managedconnectionfactory-class
146      * @return the managedconnectionfactory-class
147      */

148     public String JavaDoc getManagedconnectionfactoryClass() {
149         return managedconnectionfactoryClass;
150     }
151
152     /**
153      * Gets the connectionfactory-interface
154      * @return the connectionfactory-interface
155      */

156     public String JavaDoc getConnectionfactoryInterface() {
157         return connectionfactoryInterface;
158     }
159
160     /**
161      * Gets the connectionfactory-impl-class
162      * @return the connectionfactory-impl-class
163      */

164     public String JavaDoc getConnectionfactoryImplClass() {
165         return connectionfactoryImplClass;
166     }
167
168     /**
169      * Gets the connection-interface
170      * @return the connection-interface
171      */

172     public String JavaDoc getConnectionInterface() {
173         return connectionInterface;
174     }
175
176     /**
177      * Gets the connection-impl-class
178      * @return the connection-impl-class
179      */

180     public String JavaDoc getConnectionImplClass() {
181         return connectionImplClass;
182     }
183
184     /**
185      * Gets the transaction-support
186      * @return the transaction-support
187      */

188     public String JavaDoc getTransactionSupport() {
189         return transactionSupport;
190     }
191
192     /**
193      * Gets the config-property
194      * @return the config-property
195      */

196     public List JavaDoc getConfigPropertyList() {
197         return configPropertyList;
198     }
199
200     /**
201      * Gets the authentication-mechanism
202      * @return the authentication-mechanism
203      */

204     public List JavaDoc getAuthenticationMechanismList() {
205         return authenticationMechanismList;
206     }
207
208     /**
209      * Gets the outbound-resourceadapter
210      * @return the outbound-resourceadapter
211      */

212     public OutboundResourceadapterDesc getOutboundResourceadapterDesc() {
213         return outboundResourceadapterDesc;
214     }
215
216     /**
217      * Gets the inbound-resourceadapter
218      * @return the inbound-resourceadapter
219      */

220     public InboundResourceadapterDesc getInboundResourceadapterDesc() {
221         return inboundResourceadapterDesc;
222     }
223
224     /**
225      * Gets the adminobject
226      * @return the adminobject
227      */

228     public List JavaDoc getAdminobjectList() {
229         return adminobjectList;
230     }
231
232     /**
233      * Gets the reauthentication-support
234      * @return the reauthentication-support
235      */

236     public String JavaDoc getReauthenticationSupport() {
237         return reauthenticationSupport;
238     }
239
240     /**
241      * Gets the security-permission
242      * @return the security-permission
243      */

244     public List JavaDoc getSecurityPermissionList() {
245         return securityPermissionList;
246     }
247
248 }
249
Popular Tags