KickJava   Java API By Example, From Geeks To Geeks.

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


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: ConnectionDefinitionDesc.java,v 1.1 2004/09/17 22:33:32 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.ConnectionDefinition;
33
34 /**
35  * This class defines the implementation of the element connection-definition
36  *
37  * @author Eric Hardesty
38  */

39
40 public class ConnectionDefinitionDesc implements Serializable JavaDoc {
41
42     /**
43      * id
44      */

45     private String JavaDoc id = null;
46
47     /**
48      * managedconnectionfactory-class
49      */

50     private String JavaDoc managedconnectionfactoryClass = null;
51
52     /**
53      * config-property
54      */

55     private List JavaDoc configPropertyList = null;
56
57     /**
58      * connectionfactory-interface
59      */

60     private String JavaDoc connectionfactoryInterface = null;
61
62     /**
63      * connectionfactory-impl-class
64      */

65     private String JavaDoc connectionfactoryImplClass = null;
66
67     /**
68      * connection-interface
69      */

70     private String JavaDoc connectionInterface = null;
71
72     /**
73      * connection-impl-class
74      */

75     private String JavaDoc connectionImplClass = null;
76
77
78     /**
79      * Constructor
80      */

81     public ConnectionDefinitionDesc(ConnectionDefinition cd) {
82         if (cd != null) {
83             id = cd.getId();
84             managedconnectionfactoryClass = cd.getManagedconnectionfactoryClass();
85             configPropertyList = Utility.configProperty(cd.getConfigPropertyList());
86             connectionfactoryInterface = cd.getConnectionfactoryInterface();
87             connectionfactoryImplClass = cd.getConnectionfactoryImplClass();
88             connectionInterface = cd.getConnectionInterface();
89             connectionImplClass = cd.getConnectionImplClass();
90         }
91     }
92
93     /**
94      * Gets the id
95      * @return the id
96      */

97     public String JavaDoc getId() {
98         return id;
99     }
100
101     /**
102      * Gets the managedconnectionfactory-class
103      * @return the managedconnectionfactory-class
104      */

105     public String JavaDoc getManagedconnectionfactoryClass() {
106         return managedconnectionfactoryClass;
107     }
108
109     /**
110      * Gets the config-property
111      * @return the config-property
112      */

113     public List JavaDoc getConfigPropertyList() {
114         return configPropertyList;
115     }
116
117     /**
118      * Gets the connectionfactory-interface
119      * @return the connectionfactory-interface
120      */

121     public String JavaDoc getConnectionfactoryInterface() {
122         return connectionfactoryInterface;
123     }
124
125     /**
126      * Gets the connectionfactory-impl-class
127      * @return the connectionfactory-impl-class
128      */

129     public String JavaDoc getConnectionfactoryImplClass() {
130         return connectionfactoryImplClass;
131     }
132
133     /**
134      * Gets the connection-interface
135      * @return the connection-interface
136      */

137     public String JavaDoc getConnectionInterface() {
138         return connectionInterface;
139     }
140
141     /**
142      * Gets the connection-impl-class
143      * @return the connection-impl-class
144      */

145     public String JavaDoc getConnectionImplClass() {
146         return connectionImplClass;
147     }
148
149 }
150
Popular Tags