use of org.jboss.as.connector.services.resourceadapters.deployment.registry.ResourceAdapterDeploymentRegistryService in project wildfly by wildfly.
the class RaDeploymentActivator method activateServices.
public void activateServices(final ServiceTarget serviceTarget) {
// add resources here
serviceTarget.addService(ConnectorServices.IRONJACAMAR_MDR, mdrService).install();
RaRepositoryService raRepositoryService = new RaRepositoryService();
serviceTarget.addService(ConnectorServices.RA_REPOSITORY_SERVICE, raRepositoryService).addDependency(ConnectorServices.IRONJACAMAR_MDR, MetadataRepository.class, raRepositoryService.getMdrInjector()).addDependency(ConnectorServices.TRANSACTION_INTEGRATION_SERVICE, TransactionIntegration.class, raRepositoryService.getTransactionIntegrationInjector()).install();
// Special resource adapter repository and bootstrap context for non-JTA datasources
NonJTADataSourceRaRepositoryService nonJTADataSourceRaRepositoryService = new NonJTADataSourceRaRepositoryService();
serviceTarget.addService(ConnectorServices.NON_JTA_DS_RA_REPOSITORY_SERVICE, nonJTADataSourceRaRepositoryService).addDependency(ConnectorServices.IRONJACAMAR_MDR, MetadataRepository.class, nonJTADataSourceRaRepositoryService.getMdrInjector()).install();
ManagementRepositoryService managementRepositoryService = new ManagementRepositoryService();
serviceTarget.addService(ConnectorServices.MANAGEMENT_REPOSITORY_SERVICE, managementRepositoryService).install();
ResourceAdapterDeploymentRegistryService registryService = new ResourceAdapterDeploymentRegistryService();
serviceTarget.addService(ConnectorServices.RESOURCE_ADAPTER_REGISTRY_SERVICE, registryService).addDependency(ConnectorServices.IRONJACAMAR_MDR).install();
}
Aggregations