}
return list;
}
private void buildConnectionDefinition(Class<? extends ManagedConnectionFactory> mcfClass, javax.resource.spi.ConnectionDefinition connectionDefinitionAnnotation, OutboundResourceAdapter outboundResourceAdapter) throws DeploymentException {
ConnectionDefinition connectionDefinition = getConnectionDefinition(connectionDefinitionAnnotation, outboundResourceAdapter);
if (connectionDefinition.getManagedConnectionFactoryClass() == null) {
connectionDefinition.setManagedConnectionFactoryClass(mcfClass.getName());
}
if (mcfClass.getName().equals(connectionDefinition.getManagedConnectionFactoryClass())) {
connectionDefinition.setConnectionFactoryImplClass(connectionDefinitionAnnotation.connectionFactoryImpl().getName());
connectionDefinition.setConnectionInterface(connectionDefinitionAnnotation.connection().getName());
connectionDefinition.setConnectionImplClass(connectionDefinitionAnnotation.connectionImpl().getName());
setConfigProperties(connectionDefinition.getConfigProperty(), mcfClass);
}
}