Inspired by the tutorial about writing CDI extensions I wrote several days ago I created a CDI extension which targets exactly this topic
CDIProperties
This handy library enables a CDI (in a standalone or application server environment) application to directly inject properties from a property file. It’s extensible via an SPI, so that you can create your own converter from a property to a value.
Today I released version 1.0.0 at maven central. The documentation, sources and a basic example are located at github – https://github.com/coders-kitchen/CDIProperties – as usual.
The artifact coordinates are
- Group com.coders-kitchen
- Artifact cdi-properties
- Version 1.0.0
Have a nice weekend