This is a CDI portable extension for obtaining all the default utilities defined by
JSR 236 via CDI dependency injection instead of
Java EE resource injection (@Resource
) or JNDI look-ups.
The following artifacts can be injected into any CDI bean:
@Inject
private ManagedExecutorService executorService;
@Inject
private ManagedScheduledExecutorService scheduledExecutorService;
@Inject
private ManagedThreadFactory threadFactory;
@Inject
private ContextService contextService;
To use this extension within your project, add the following dependency to your pom.xml (the project is not deployed to Maven Central at this point, so it needs to be built from source before):
<dependency>
<groupId>org.morling.concurrencyutilities.cdi</groupId>
<artifactId>concurrency-utilities-cdi-extension</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
This work is licensed under the Apache License version 2.0