Hello everyone,
I am using Weld-SE (2.0.3.Final) for a non-EE project that requires a custom TransactionServices.
I use the following code to bootstrap it within Weld-SE:
weld = new Weld(){ @Override protected Deployment createDeployment(ResourceLoader resourceLoader, Bootstrap bootstrap) { Deployment deployment = super.createDeployment(resourceLoader, bootstrap); deployment.getServices().add(TransactionServices.class, new InMemoryTransactionServices()); return deployment; } };
I was wondering if, is there any other way to provide it ? like maybe with a service file located under META-INF/services ?
I would like to provide it that way so I could use Arquillian to run my integration tests without to adapt the Weld-SE container adapter (update : see discussion here on the Arquillian forum).
I have read the documentation located http://docs.jboss.org/weld/reference/latest/en-US/html_single/#d0e6427 but I do not find any additional information about how to bootstrap a custom service. Maybe I am missing something ?
Many thanks,