jproperties
microprofile-config
jproperties | microprofile-config | |
---|---|---|
2 | 4 | |
12 | 204 | |
- | -0.5% | |
4.7 | 6.5 | |
over 2 years ago | 4 months ago | |
Java | Java | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
jproperties
microprofile-config
-
slf4j or System.Logger?
There are a lot of great config libraries, you should also take a look at such as smallrye-config. I am trying to make my library compatible with microprofile-config but there are some fundamental differences.
-
Externalized Properties for the JVM
You might have a look at MicroProfile Config as well.
-
JProperties: A modern replacement for java.util.Properties
Now you might be tempted to say well we just need a System.getProperties replacement. A SLF4J of properties config. Perhaps one that uses the ServiceLoader. And indeed microprofile config somewhat solves that problem. The problem is of course is backward compatibility (replacing all the old libraries uses of system properties of which you might not be able to) and of course that config facade adds a dependency.
-
How to create a ConfigSource for Quarkus that knows about existing properties
Quarkus is internally using the SmallRye implementation of Eclipse MicroProfile Config (MP-Config). MP-Config allows to add so called Configuration Sources, that allow to supply config objects in a programmable way from e.g. a file in a strange format or perhaps even from a central repository. This brief post describes how to create a ConfigSource for Quarkus that knows about existing properties
What are some alternatives?
archaius - Library for configuration management API
io-util - Utility modules, a no-dep JSON module, and a fixed-width external (disk) table module.
gestalt - A Java configuration library that allows you to build your configurations from multiple sources, merges them and convert them into an easy-to-use typesafe configuration class. A simple but powerful interface allows you to navigate to a path within your configurations and retrieve a configuration object, list, or a primitive value.
externalized-properties - A lightweight and extensible library to resolve application properties from various external sources.
RailsConfig - Easiest way to add multi-environment yaml settings to Rails, Sinatra, Padrino and other Ruby projects.
yaslf4j - yet another simple logging facade for java
config - configuration library for JVM languages using HOCON files
flogger - A Fluent Logging API for Java