An open API service indexing awesome lists of open source software.

https://github.com/carlspring/properties-injector

A simple project that provides injection of properties via annotations
https://github.com/carlspring/properties-injector

Last synced: 12 months ago
JSON representation

A simple project that provides injection of properties via annotations

Awesome Lists containing this project

README

          

# properties-injector

[![Master Build Status](https://dev.carlspring.org/jenkins/buildStatus/icon?job=opensource/properties-injector/master)](https://dev.carlspring.org/jenkins/blue/organizations/jenkins/opensource%2Fproperties-injector/activity?branch=master)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.carlspring/properties-injector/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.carlspring/properties-injector)

If you are sick and tired of having to write properties loading code for each
new project where properties files are used and if you'd prefer to have simple
annotations for this, then this project is what you are looking for.

This is a very lightweight alternative of Spring's cool org.springframework.beans.factory.annotation.Value.
While Spring's idea is great, sometimes you just have the limitation of not being
allowed to use it in your project.

Check the [USAGE](https://github.com/carlspring/properties-injector/blob/master/USAGE) file for examples of how to use the code.