00001 00027 package org.objectweb.jonas_rar.deployment.api; 00028 00029 import java.io.Serializable; 00030 import java.util.List; 00031 00032 import org.objectweb.jonas_rar.deployment.xml.ConnectionDefinition; 00033 00040 public class ConnectionDefinitionDesc implements Serializable { 00041 00045 private String id = null; 00046 00050 private String managedconnectionfactoryClass = null; 00051 00055 private List configPropertyList = null; 00056 00060 private String connectionfactoryInterface = null; 00061 00065 private String connectionfactoryImplClass = null; 00066 00070 private String connectionInterface = null; 00071 00075 private String connectionImplClass = null; 00076 00077 00081 public ConnectionDefinitionDesc(ConnectionDefinition cd) { 00082 if (cd != null) { 00083 id = cd.getId(); 00084 managedconnectionfactoryClass = cd.getManagedconnectionfactoryClass(); 00085 configPropertyList = Utility.configProperty(cd.getConfigPropertyList()); 00086 connectionfactoryInterface = cd.getConnectionfactoryInterface(); 00087 connectionfactoryImplClass = cd.getConnectionfactoryImplClass(); 00088 connectionInterface = cd.getConnectionInterface(); 00089 connectionImplClass = cd.getConnectionImplClass(); 00090 } 00091 } 00092 00097 public String getId() { 00098 return id; 00099 } 00100 00105 public String getManagedconnectionfactoryClass() { 00106 return managedconnectionfactoryClass; 00107 } 00108 00113 public List getConfigPropertyList() { 00114 return configPropertyList; 00115 } 00116 00121 public String getConnectionfactoryInterface() { 00122 return connectionfactoryInterface; 00123 } 00124 00129 public String getConnectionfactoryImplClass() { 00130 return connectionfactoryImplClass; 00131 } 00132 00137 public String getConnectionInterface() { 00138 return connectionInterface; 00139 } 00140 00145 public String getConnectionImplClass() { 00146 return connectionImplClass; 00147 } 00148 00149 }