use of org.jboss.as.connector.services.resourceadapters.repository.ManagementRepositoryService 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.getCachedCapabilityServiceName(TRANSACTION_INTEGRATION_CAPABILITY_NAME), 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();
final ServiceBuilder sb = serviceTarget.addService(ConnectorServices.RESOURCE_ADAPTER_REGISTRY_SERVICE, registryService);
sb.requires(ConnectorServices.IRONJACAMAR_MDR);
sb.install();
}
Aggregations