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: ConnectionDefinitionDesc.java 5459 2004-09-17 22:33:33Z 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.ConnectionDefinition;
032:
033: /**
034: * This class defines the implementation of the element connection-definition
035: *
036: * @author Eric Hardesty
037: */
038:
039: public class ConnectionDefinitionDesc implements Serializable {
040:
041: /**
042: * id
043: */
044: private String id = null;
045:
046: /**
047: * managedconnectionfactory-class
048: */
049: private String managedconnectionfactoryClass = null;
050:
051: /**
052: * config-property
053: */
054: private List configPropertyList = null;
055:
056: /**
057: * connectionfactory-interface
058: */
059: private String connectionfactoryInterface = null;
060:
061: /**
062: * connectionfactory-impl-class
063: */
064: private String connectionfactoryImplClass = null;
065:
066: /**
067: * connection-interface
068: */
069: private String connectionInterface = null;
070:
071: /**
072: * connection-impl-class
073: */
074: private String connectionImplClass = null;
075:
076: /**
077: * Constructor
078: */
079: public ConnectionDefinitionDesc(ConnectionDefinition cd) {
080: if (cd != null) {
081: id = cd.getId();
082: managedconnectionfactoryClass = cd
083: .getManagedconnectionfactoryClass();
084: configPropertyList = Utility.configProperty(cd
085: .getConfigPropertyList());
086: connectionfactoryInterface = cd
087: .getConnectionfactoryInterface();
088: connectionfactoryImplClass = cd
089: .getConnectionfactoryImplClass();
090: connectionInterface = cd.getConnectionInterface();
091: connectionImplClass = cd.getConnectionImplClass();
092: }
093: }
094:
095: /**
096: * Gets the id
097: * @return the id
098: */
099: public String getId() {
100: return id;
101: }
102:
103: /**
104: * Gets the managedconnectionfactory-class
105: * @return the managedconnectionfactory-class
106: */
107: public String getManagedconnectionfactoryClass() {
108: return managedconnectionfactoryClass;
109: }
110:
111: /**
112: * Gets the config-property
113: * @return the config-property
114: */
115: public List getConfigPropertyList() {
116: return configPropertyList;
117: }
118:
119: /**
120: * Gets the connectionfactory-interface
121: * @return the connectionfactory-interface
122: */
123: public String getConnectionfactoryInterface() {
124: return connectionfactoryInterface;
125: }
126:
127: /**
128: * Gets the connectionfactory-impl-class
129: * @return the connectionfactory-impl-class
130: */
131: public String getConnectionfactoryImplClass() {
132: return connectionfactoryImplClass;
133: }
134:
135: /**
136: * Gets the connection-interface
137: * @return the connection-interface
138: */
139: public String getConnectionInterface() {
140: return connectionInterface;
141: }
142:
143: /**
144: * Gets the connection-impl-class
145: * @return the connection-impl-class
146: */
147: public String getConnectionImplClass() {
148: return connectionImplClass;
149: }
150:
151: }
|