avaje / avaje-config

Application configuration / properties loading for JVM applications
https://avaje.io/config
Apache License 2.0
50 stars 8 forks source link

Add forPath method #45

Closed SentryMan closed 1 year ago

SentryMan commented 1 year ago

Now can do stuff like this.

//given properties like 
database.example.password
database.example.username

Configuration dbConfiguration = Config.forPath("database");
Configuration dbExampleConfiguration = dbConfiguration.forPath("example");
// or 
Configuration dbExampleConfiguration = Config.forPath("database.example");
dbExampleConfiguration.get("password");
dbExampleConfiguration.get("username");

Related to #43