connectionfactoryImplClass, connectionInterface,
connectionImplClass, transactionSupport,
authenticationMechanism, connectioDefProperties,
reauthenticationSupport, securityPermissions, id);
Connector newConnector = new Connector10Impl(vendorName, eisType, resourceadapterVersion,
license, resourceadapter, description, displayNames, icons, id);
return newConnector.merge(connector);
}
else
{
List<ConnectionDefinition> connectionDefinitions = new ArrayList<ConnectionDefinition>(1);
ConnectionDefinition connectionDefinition = new ConnectionDefinitionImpl(managedconnectionfactoryClass,
connectioDefProperties,
connectionfactoryInterface,
connectionfactoryImplClass,
connectionInterface,
connectionImplClass, id);
connectionDefinitions.add(connectionDefinition);
OutboundResourceAdapter outboundResourceadapter = new OutboundResourceAdapterImpl(connectionDefinitions,
transactionSupport,
authenticationMechanism,
reauthenticationSupport,
id);
String resourceadapterClass = null;
InboundResourceAdapter inboundResourceadapter = null;
ResourceAdapter1516 resourceadapter = new ResourceAdapter1516Impl(resourceadapterClass, raConfigProperties,
outboundResourceadapter,
inboundResourceadapter, adminobjects,
securityPermissions, id);
if (connector.getVersion() == Version.V_16)
{
List<String> requiredWorkContexts = null;
boolean metadataComplete = false;
Connector newConnector = new Connector16Impl(moduleName, vendorName, eisType, resourceadapterVersion,
license, resourceadapter, requiredWorkContexts,
metadataComplete, description, displayNames, icons, id);
return newConnector.merge(connector);
}
else if (connector.getVersion() == Version.V_15)
{
Connector newConnector = new Connector15Impl(vendorName, eisType, resourceadapterVersion, license,
resourceadapter, description, displayNames, icons, id);
return newConnector.merge(connector);
}
else
throw new IllegalArgumentException("version= " + connector.getVersion().name());
}