@XmlElement(name = "connection-interface", required = true) public String getConnectionInterface() { return connectionDefinition.getConnectionInterface(); }
@XmlElement(name = "connection-interface", required = true) public String getConnectionInterface() { return connectionDefinition.getConnectionInterface(); }
@XmlElement(name = "connection-interface", required = true) public String getConnectionInterface() { return connectionDefinition.getConnectionInterface(); }
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.getConnectionInterface() == null) { definition.setConnectionInterface(connectionDefinitionAnnotation.connection().getName());
if (definition.getConnectionInterface() == null) { definition.setConnectionInterface(connectionDefinitionAnnotation.connection().getName());
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); } }