1 27 package org.objectweb.jonas_rar.deployment.api; 28 29 import java.io.Serializable ; 30 import java.util.List ; 31 32 import org.objectweb.jonas_rar.deployment.xml.InboundResourceadapter; 33 import org.objectweb.jonas_rar.deployment.xml.OutboundResourceadapter; 34 import org.objectweb.jonas_rar.deployment.xml.Resourceadapter; 35 40 41 public class ResourceadapterDesc implements Serializable { 42 43 46 private String resourceadapterClass = null; 47 48 51 private String managedconnectionfactoryClass = null; 52 53 56 private String connectionfactoryInterface = null; 57 58 61 private String connectionfactoryImplClass = null; 62 63 66 private String connectionInterface = null; 67 68 71 private String connectionImplClass = null; 72 73 76 private String transactionSupport = null; 77 78 81 private List configPropertyList = null; 82 83 86 private List authenticationMechanismList = null; 87 88 91 private OutboundResourceadapterDesc outboundResourceadapterDesc = null; 92 93 96 private InboundResourceadapterDesc inboundResourceadapterDesc = null; 97 98 101 private List adminobjectList = null; 102 103 106 private String reauthenticationSupport = null; 107 108 111 private List securityPermissionList = null; 112 113 114 117 public ResourceadapterDesc(Resourceadapter ra) { 118 if (ra != null) { 119 resourceadapterClass = ra.getResourceadapterClass(); 120 managedconnectionfactoryClass = ra.getManagedconnectionfactoryClass(); 121 connectionfactoryInterface = ra.getConnectionfactoryInterface(); 122 connectionfactoryImplClass = ra.getConnectionfactoryImplClass(); 123 connectionInterface = ra.getConnectionInterface(); 124 connectionImplClass = ra.getConnectionImplClass(); 125 transactionSupport = ra.getTransactionSupport(); 126 configPropertyList = Utility.configProperty(ra.getConfigPropertyList()); 127 authenticationMechanismList = Utility.authenticationMechanism(ra.getAuthenticationMechanismList()); 128 outboundResourceadapterDesc = new OutboundResourceadapterDesc(ra.getOutboundResourceadapter()); 129 inboundResourceadapterDesc = new InboundResourceadapterDesc(ra.getInboundResourceadapter()); 130 adminobjectList = Utility.adminobject(ra.getAdminobjectList()); 131 reauthenticationSupport = ra.getReauthenticationSupport(); 132 securityPermissionList = Utility.securityPermission(ra.getSecurityPermissionList()); 133 } 134 } 135 136 140 public String getResourceadapterClass() { 141 return resourceadapterClass; 142 } 143 144 148 public String getManagedconnectionfactoryClass() { 149 return managedconnectionfactoryClass; 150 } 151 152 156 public String getConnectionfactoryInterface() { 157 return connectionfactoryInterface; 158 } 159 160 164 public String getConnectionfactoryImplClass() { 165 return connectionfactoryImplClass; 166 } 167 168 172 public String getConnectionInterface() { 173 return connectionInterface; 174 } 175 176 180 public String getConnectionImplClass() { 181 return connectionImplClass; 182 } 183 184 188 public String getTransactionSupport() { 189 return transactionSupport; 190 } 191 192 196 public List getConfigPropertyList() { 197 return configPropertyList; 198 } 199 200 204 public List getAuthenticationMechanismList() { 205 return authenticationMechanismList; 206 } 207 208 212 public OutboundResourceadapterDesc getOutboundResourceadapterDesc() { 213 return outboundResourceadapterDesc; 214 } 215 216 220 public InboundResourceadapterDesc getInboundResourceadapterDesc() { 221 return inboundResourceadapterDesc; 222 } 223 224 228 public List getAdminobjectList() { 229 return adminobjectList; 230 } 231 232 236 public String getReauthenticationSupport() { 237 return reauthenticationSupport; 238 } 239 240 244 public List getSecurityPermissionList() { 245 return securityPermissionList; 246 } 247 248 } 249 | Popular Tags |