use of org.jboss.as.weld.services.bootstrap.WeldTransactionServices in project wildfly by wildfly.
the class TransactionsBootstrapDependencyInstaller method install.
@Override
public ServiceName install(ServiceTarget serviceTarget, DeploymentUnit deploymentUnit, boolean jtsEnabled) {
final WeldTransactionServices weldTransactionServices = new WeldTransactionServices(jtsEnabled);
final ServiceName weldTransactionServiceName = deploymentUnit.getServiceName().append(WeldTransactionServices.SERVICE_NAME);
serviceTarget.addService(weldTransactionServiceName, weldTransactionServices).addDependency(TransactionManagerService.SERVICE_NAME, TransactionManager.class, weldTransactionServices.getInjectedTransactionManager()).addDependency(UserTransactionService.SERVICE_NAME, UserTransaction.class, weldTransactionServices.getInjectedTransaction()).install();
return weldTransactionServiceName;
}
Aggregations