@XmlElement(name = "connectionfactory-interface", required = true) public String getConnectionFactoryInterface() { return connectionDefinition.getConnectionFactoryInterface(); }
@XmlElement(name = "connectionfactory-interface", required = true) public String getConnectionFactoryInterface() { return connectionDefinition.getConnectionFactoryInterface(); }
@XmlElement(name = "connectionfactory-interface", required = true) public String getConnectionFactoryInterface() { return connectionDefinition.getConnectionFactoryInterface(); }
private ConnectionDefinition getConnectionDefinition(javax.resource.spi.ConnectionDefinition connectionDefinitionAnnotation, OutboundResourceAdapter outboundResourceAdapter) { for (ConnectionDefinition connectionDefinition : outboundResourceAdapter.getConnectionDefinition()) { if (connectionDefinitionAnnotation.connectionFactory().getName().equals(connectionDefinition.getConnectionFactoryInterface())) { return connectionDefinition; } } ConnectionDefinition connectionDefinition = new ConnectionDefinition(); outboundResourceAdapter.getConnectionDefinition().add(connectionDefinition); connectionDefinition.setConnectionFactoryInterface(connectionDefinitionAnnotation.connectionFactory().getName()); return connectionDefinition; }
private String getId(ConnectionDefinition connection, OutboundResourceAdapter outbound, ConnectorModule connectorModule) { String id; if (connection.getId() != null) { id = connection.getId(); } else if (outbound.getConnectionDefinition().size() == 1) { id = connectorModule.getModuleId(); } else { id = connectorModule.getModuleId() + "-" + connection.getConnectionFactoryInterface(); } return id; }
private String getId(final ConnectionDefinition connection, final OutboundResourceAdapter outbound, final ConnectorModule connectorModule) { final String id; if (connection.getId() != null) { id = connection.getId(); } else if (outbound.getConnectionDefinition().size() == 1) { id = connectorModule.getModuleId(); } else { id = connectorModule.getModuleId() + "-" + connection.getConnectionFactoryInterface(); } return id; }
private String getId(final ConnectionDefinition connection, final OutboundResourceAdapter outbound, final ConnectorModule connectorModule) { final String id; if (connection.getId() != null) { id = connection.getId(); } else if (outbound.getConnectionDefinition().size() == 1) { id = connectorModule.getModuleId(); } else { id = connectorModule.getModuleId() + "-" + connection.getConnectionFactoryInterface(); } return id; }
private Map getManagedConnectionFactoryInfoMap(AbstractName validatorName, List<ConnectionDefinition> connectionDefinitions, Bundle bundle) throws DeploymentException { Map<String, GBeanData> managedConnectionFactoryInfos = new HashMap<String, GBeanData>(); for (ConnectionDefinition connectionDefinition : connectionDefinitions) { GBeanInfoBuilder managedConnectionFactoryInfoBuilder = new GBeanInfoBuilder(ManagedConnectionFactoryWrapper.class, ManagedConnectionFactoryWrapperGBean.GBEAN_INFO); String managedConnectionfactoryClassName = connectionDefinition.getManagedConnectionFactoryClass(); Set<String> ignore = new HashSet<String>(); ignore.add("ResourceAdapter"); ignore.add("LogWriter"); GBeanData managedConnectionFactoryGBeanData = setUpDynamicGBeanWithProperties(managedConnectionfactoryClassName, managedConnectionFactoryInfoBuilder, connectionDefinition.getConfigProperty(), bundle, ignore); // set the standard properties String connectionfactoryInterface = connectionDefinition.getConnectionFactoryInterface(); managedConnectionFactoryGBeanData.setAttribute("managedConnectionFactoryClass", managedConnectionfactoryClassName); managedConnectionFactoryGBeanData.setAttribute("connectionFactoryInterface", connectionfactoryInterface); managedConnectionFactoryGBeanData.setAttribute("connectionFactoryImplClass", connectionDefinition.getConnectionFactoryImplClass()); managedConnectionFactoryGBeanData.setAttribute("connectionInterface", connectionDefinition.getConnectionInterface()); managedConnectionFactoryGBeanData.setAttribute("connectionImplClass", connectionDefinition.getConnectionImplClass()); managedConnectionFactoryGBeanData.setReferencePattern("ValidatorFactory", validatorName); managedConnectionFactoryInfos.put(connectionfactoryInterface, managedConnectionFactoryGBeanData); } return managedConnectionFactoryInfos; }
if (definition.getConnectionFactoryInterface() == null) { definition.setConnectionFactoryInterface(connectionDefinitionAnnotation.connectionFactory().getName());
if (definition.getConnectionFactoryInterface() == null) { definition.setConnectionFactoryInterface(connectionDefinitionAnnotation.connectionFactory().getName());
if (outbound != null) { for (final ConnectionDefinition connection : outbound.getConnectionDefinition()) { final String type = connection.getConnectionFactoryInterface();
if (outbound != null) { for (final ConnectionDefinition connection : outbound.getConnectionDefinition()) { final String type = connection.getConnectionFactoryInterface();
if (outbound != null) { for (ConnectionDefinition connection : outbound.getConnectionDefinition()) { String type = connection.getConnectionFactoryInterface();
String type = connection.getConnectionFactoryInterface();
final String type = connection.getConnectionFactoryInterface();
final String type = connection.getConnectionFactoryInterface();
private void addExportPackages(Connector connector, Environment environment, Bundle bundle) throws DeploymentException { if (connector.getResourceAdapter().getOutboundResourceAdapter() != null) { for (ConnectionDefinition connectionDefinition : connector.getResourceAdapter().getOutboundResourceAdapter().getConnectionDefinition()) { addExportPackage(environment, connectionDefinition.getConnectionFactoryInterface(), bundle); addExportPackage(environment, connectionDefinition.getConnectionInterface(), bundle); } } if (connector.getResourceAdapter().getInboundResourceAdapter() != null) { for (MessageListener messageListener : connector.getResourceAdapter().getInboundResourceAdapter().getMessageAdapter().getMessageListener()) { addExportPackage(environment, messageListener.getMessageListenerType(), bundle); addExportPackage(environment, messageListener.getActivationSpec().getActivationSpecClass(), bundle); } } for (AdminObject adminObject : connector.getResourceAdapter().getAdminObject()) { addExportPackage(environment, adminObject.getAdminObjectInterface(), bundle); } }