JavaEE : CDIProperties

Description

This library is an extension for CDI. It provides an annotation based approach to access properties from a property file.

Artifact Coordinates

  • Group com.coders-kitchen
  • Artifact cdi-properties
  • Version 1.0.1

Sources

@ GitHub : https://github.com/coders-kitchen/CDIProperties

Usage

Having a properties file application.properties on the classpath with the following properties

  • name (type : String)
  • version (type : String)
  • productive (type : Boolean)

The properties can now be easily injected like in the following example

More details could be found on the github-page.

 
0 Kudos
Don't
move!

One thought on “JavaEE : CDIProperties

  1. Pingback: A.C. London

Leave a Reply

Your email address will not be published. Required fields are marked *