Skip to content

gunnarmorling/concurrency-utilities-cdi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Concurrency Utilities (JSR 236) CDI Extension

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;

Usage

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>

License

This work is licensed under the Apache License version 2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages