connectioDefProperties.addAll(raConfigProperties);
}
}
List<ConnectionDefinition> cds = new ArrayList<ConnectionDefinition>(1);
ConnectionDefinition cd = new ConnectionDefinitionImpl(managedconnectionfactoryClass,
connectioDefProperties,
connectionfactoryInterface,
connectionfactoryImplClass,
connectionInterface,
connectionImplClass, id);
cds.add(cd);
OutboundResourceAdapter ora = new OutboundResourceAdapterImpl(cds,
transactionSupport,
authenticationMechanism,
reauthenticationSupport,
id, null, null);
//building and returning object
ResourceAdapter resourceadapter = new ResourceAdapterImpl(null, null, ora, null, null,
securityPermissions, id);
Connector newConnector = new ConnectorImpl(Version.V_10, null, vendorName, eisType, resourceadapterVersion,
license, resourceadapter, null, true,
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);