Skip to main content

Juneau Config

Configuration files as POJOs, with variables and live reload.

# A set of entries
[Section1]

# An integer
key1 = 1

# A boolean
key2 = true
import org.apache.juneau.config.*;

Config config = Config.create("MyConfig.cfg").build();

int key1 = config.get("Section1/key1").asInteger().orElse(-1);
boolean key2 = config.get("Section1/key2").asBoolean().orElse(false);

Modules: juneau-config

Read more →