Offering native support for optional properties with Typesafe Config.
Typesafe Config is one of the more popular configuration libraries for JVM languages. Unfortunately it doesn't offer an elegant way to handle optional properties.
This project is a companion to Typesafe Config, allowing users a more convenient way to handle optional properties and providing a number of additional enhancements.
Do yourself a favor and start configuring your projects like this:
final int nthreads = conf.getOptionalInteger("nthreads")
.orElse(Runtime.getRuntime().availableProcessors());
final ExecutorService exec = Executors.newFixedThreadPool(nthreads);
Please refer to the Wiki for details, specifications, API examples, and FAQ.
The latest API documentation can be accessed here.
- cfg4j - cfg4j ("configuration for Java") is a configuration library for Java distributed apps (and more).
- externalized-properties - A lightweight and extensible library to resolve application properties from various external sources.
- gestalt - Gestalt is a powerful Java configuration library designed to simplify the way you handle and manage configurations in your software projects.
- Owner - Get rid of the boilerplate code in properties based configuration.
- SmallRye Config - SmallRye Config is a library that provides a way to configure applications, frameworks and containers.
- Configur8 - Nano-library which provides the ability to define typesafe (!) Configuration templates for applications.
- KAConf - KickAss Configuration. An annotation-based configuration system for Java and Kotlin.
- dotenv - A twelve-factor configuration (12factor.net/config) library for Java 8+.
- ini4j - A simple Java API for handling configuration files in Windows .ini format.