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.InboundResourceadapter; 00033 import org.objectweb.jonas_rar.deployment.xml.OutboundResourceadapter; 00034 import org.objectweb.jonas_rar.deployment.xml.Resourceadapter; 00041 public class ResourceadapterDesc implements Serializable { 00042 00046 private String resourceadapterClass = null; 00047 00051 private String managedconnectionfactoryClass = null; 00052 00056 private String connectionfactoryInterface = null; 00057 00061 private String connectionfactoryImplClass = null; 00062 00066 private String connectionInterface = null; 00067 00071 private String connectionImplClass = null; 00072 00076 private String transactionSupport = null; 00077 00081 private List configPropertyList = null; 00082 00086 private List authenticationMechanismList = null; 00087 00091 private OutboundResourceadapterDesc outboundResourceadapterDesc = null; 00092 00096 private InboundResourceadapterDesc inboundResourceadapterDesc = null; 00097 00101 private List adminobjectList = null; 00102 00106 private String reauthenticationSupport = null; 00107 00111 private List securityPermissionList = null; 00112 00113 00117 public ResourceadapterDesc(Resourceadapter ra) { 00118 if (ra != null) { 00119 resourceadapterClass = ra.getResourceadapterClass(); 00120 managedconnectionfactoryClass = ra.getManagedconnectionfactoryClass(); 00121 connectionfactoryInterface = ra.getConnectionfactoryInterface(); 00122 connectionfactoryImplClass = ra.getConnectionfactoryImplClass(); 00123 connectionInterface = ra.getConnectionInterface(); 00124 connectionImplClass = ra.getConnectionImplClass(); 00125 transactionSupport = ra.getTransactionSupport(); 00126 configPropertyList = Utility.configProperty(ra.getConfigPropertyList()); 00127 authenticationMechanismList = Utility.authenticationMechanism(ra.getAuthenticationMechanismList()); 00128 outboundResourceadapterDesc = new OutboundResourceadapterDesc(ra.getOutboundResourceadapter()); 00129 inboundResourceadapterDesc = new InboundResourceadapterDesc(ra.getInboundResourceadapter()); 00130 adminobjectList = Utility.adminobject(ra.getAdminobjectList()); 00131 reauthenticationSupport = ra.getReauthenticationSupport(); 00132 securityPermissionList = Utility.securityPermission(ra.getSecurityPermissionList()); 00133 } 00134 } 00135 00140 public String getResourceadapterClass() { 00141 return resourceadapterClass; 00142 } 00143 00148 public String getManagedconnectionfactoryClass() { 00149 return managedconnectionfactoryClass; 00150 } 00151 00156 public String getConnectionfactoryInterface() { 00157 return connectionfactoryInterface; 00158 } 00159 00164 public String getConnectionfactoryImplClass() { 00165 return connectionfactoryImplClass; 00166 } 00167 00172 public String getConnectionInterface() { 00173 return connectionInterface; 00174 } 00175 00180 public String getConnectionImplClass() { 00181 return connectionImplClass; 00182 } 00183 00188 public String getTransactionSupport() { 00189 return transactionSupport; 00190 } 00191 00196 public List getConfigPropertyList() { 00197 return configPropertyList; 00198 } 00199 00204 public List getAuthenticationMechanismList() { 00205 return authenticationMechanismList; 00206 } 00207 00212 public OutboundResourceadapterDesc getOutboundResourceadapterDesc() { 00213 return outboundResourceadapterDesc; 00214 } 00215 00220 public InboundResourceadapterDesc getInboundResourceadapterDesc() { 00221 return inboundResourceadapterDesc; 00222 } 00223 00228 public List getAdminobjectList() { 00229 return adminobjectList; 00230 } 00231 00236 public String getReauthenticationSupport() { 00237 return reauthenticationSupport; 00238 } 00239 00244 public List getSecurityPermissionList() { 00245 return securityPermissionList; 00246 } 00247 00248 }