KickJava   Java API By Example, From Geeks To Geeks.

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


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: JonasConnectorDesc.java,v 1.2 2005/04/14 20:20:21 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.JonasConnector;
33
34
35 /**
36  * This class defines the implementation of the element jonas-resource
37  *
38  * @author Eric Hardesty
39  */

40
41 public class JonasConnectorDesc implements Serializable JavaDoc {
42
43     /**
44      * jndi-name
45      */

46     private String JavaDoc jndiName = null;
47
48     /**
49      * rarlink
50      */

51     private String JavaDoc rarlink = null;
52
53     /**
54      * native-lib
55      */

56     private String JavaDoc nativeLib = null;
57
58     /**
59      * log-enabled
60      */

61     private String JavaDoc logEnabled = null;
62
63     /**
64      * log-topic
65      */

66     private String JavaDoc logTopic = null;
67
68     /**
69      * pool-params
70      */

71     private PoolParamsDesc poolParamsDesc = null;
72
73     /**
74      * jdbc-conn-params
75      */

76     private JdbcConnParamsDesc jdbcConnParamsDesc = null;
77
78     /**
79      * tm-params
80      */

81     private TmParamsDesc tmParamsDesc = null;
82
83     /**
84      * jonas-config-property
85      */

86     private List JavaDoc jonasConfigPropertyList = null;
87
88     /**
89      * jonas-connection-definition
90      */

91     private List JavaDoc jonasConnectionDefinitionList = null;
92
93     /**
94      * jonas-activationspec
95      */

96     private List JavaDoc jonasActivationspecList = null;
97
98     /**
99      * jonas-adminobject
100      */

101     private List JavaDoc jonasAdminobjectList = null;
102
103     /**
104      * jonas-security-mapping
105      */

106     private JonasSecurityMappingDesc jonasSecurityMappingDesc = null;
107
108     /**
109      * Constructor
110      */

111     public JonasConnectorDesc(JonasConnector jc) {
112         if (jc != null) {
113             jndiName = jc.getJndiName();
114             rarlink = jc.getRarlink();
115             nativeLib = jc.getNativeLib();
116             logEnabled = jc.getLogEnabled();
117             logTopic = jc.getLogTopic();
118             poolParamsDesc = new PoolParamsDesc(jc.getPoolParams());
119             jdbcConnParamsDesc = new JdbcConnParamsDesc(jc.getJdbcConnParams());
120             tmParamsDesc = new TmParamsDesc(jc.getTmParams());
121             
122             jonasConfigPropertyList = Utility.jonasConfigProperty(jc.getJonasConfigPropertyList());
123             jonasConnectionDefinitionList = Utility.jonasConnectionDefinition(jc.getJonasConnectionDefinitionList());
124             jonasActivationspecList = Utility.jonasActivationspec(jc.getJonasActivationspecList());
125             jonasAdminobjectList = Utility.jonasAdminobject(jc.getJonasAdminobjectList());
126             jonasSecurityMappingDesc = new JonasSecurityMappingDesc(jc.getJonasSecurityMapping());
127         }
128     }
129
130     /**
131      * Gets the jndiname
132      * @return the jndiname
133      */

134     public String JavaDoc getJndiName() {
135         return jndiName;
136     }
137
138     /**
139      * Gets the rarlink
140      * @return the rarlink
141      */

142     public String JavaDoc getRarlink() {
143         return rarlink;
144     }
145
146     /**
147      * Gets the native-lib
148      * @return the native-lib
149      */

150     public String JavaDoc getNativeLib() {
151         return nativeLib;
152     }
153
154     /**
155      * Gets the log-enabled
156      * @return the log-enabled
157      */

158     public String JavaDoc getLogEnabled() {
159         return logEnabled;
160     }
161
162     /**
163      * Gets the log-topic
164      * @return the log-topic
165      */

166     public String JavaDoc getLogTopic() {
167         return logTopic;
168     }
169
170     /**
171      * Gets the pool-params
172      * @return the pool-params
173      */

174     public PoolParamsDesc getPoolParamsDesc() {
175         return poolParamsDesc;
176     }
177
178     /**
179      * Gets the jdbc-conn-params
180      * @return the jdbc-conn-params
181      */

182     public JdbcConnParamsDesc getJdbcConnParamsDesc() {
183         return jdbcConnParamsDesc;
184     }
185
186     /**
187      * Gets the jonas-config-property
188      * @return the jonas-config-property
189      */

190     public List JavaDoc getJonasConfigPropertyList() {
191         return jonasConfigPropertyList;
192     }
193
194     /**
195      * Gets the jonas-connection-definition
196      * @return the jonas-connection-definition
197      */

198     public List JavaDoc getJonasConnectionDefinitionList() {
199         return jonasConnectionDefinitionList;
200     }
201
202     /**
203      * Gets the jonas-activationspec
204      * @return the jonas-activationspec
205      */

206     public List JavaDoc getJonasActivationspecList() {
207         return jonasActivationspecList;
208     }
209
210     /**
211      * Gets the jonas-adminobject
212      * @return the jonas-adminobject
213      */

214     public List JavaDoc getJonasAdminobjectList() {
215         return jonasAdminobjectList;
216     }
217
218     /**
219      * Gets the jonas-security-mapping
220      * @return the jonasSecurityMapping
221      */

222     public JonasSecurityMappingDesc getJonasSecurityMappingDesc() {
223         return jonasSecurityMappingDesc;
224     }
225
226     /**
227      * Gets the tm-params
228      * @return the tm-params
229      */

230     public TmParamsDesc getTmParamsDesc() {
231         return tmParamsDesc;
232     }
233
234 }
235
Popular Tags