Skip to content
Descoped Source Code Portalv2.2.13
PollingSign in

dynamic-configuration

Up to date

Dynamic Configuration

descoped/dynamic-configuration on GitHubLast push

last commit badgerelease badgelicense badgeissues badge

Build Status Latest Tag Renovate Quality Gate Status Coverage Snyk Security Score

The Configuration library is a clean (no external dependencies) Java implementation inspired by and partly based on work found in the Constretto library: https://github.com/constretto/constretto-core

This library contains a simple configuration loading and override mechanism capable of reading properties files from file-system or classpath and also ability to read configuration from environment and java system properties.

Example:

# application.properties
host=localhost
port=28282
accesslog.enabled=true
// Sample Java application using configuration library

public class MyApp {

    public static void main(String[] args) {

        DynamicConfiguration configuration = new StoreBasedDynamicConfiguration.Builder()
                .propertiesResource("application.properties")
                .propertiesResource("application_override.properties")
                .environment("MYAPP_")
                .systemProperties()
                .build();

        String host = configuration.evaluateToString("host");
        int port = configuration.evaluateToInt("port");
        boolean accessLogEnabled = configuration.evaluateToBoolean("accesslog.enabled");

        new MyWebServer(host, port, accessLogEnabled);
    }
}

Dependencies

pom.xml io.descoped.config:dynamic-configuration (3 dependencies)
NameVersionScope
org.slf4j:slf4j-api2.0.20test
org.slf4j:slf4j-simple2.0.20test
org.testng:testng7.12.0test

Health

Health 45Needs attention

Technology

Up to date
Languages
Java
Build tools
Maven
Toolchains
java 11
Used by

Packages

  • io.descoped.config:dynamic-configurationMaven2.0.0at repo1.maven.org

Pull requests

Up to date

1 open: Needs review 1

  1. Update dependency org.sonarsource.scanner.maven:sonar-maven-plugin to v5

    Needs review, waits for a review#6renovate[bot] (automation)

Issues

Up to date

1 open: Needs triage 1

  1. Dependency Dashboard

    Needs triage, waits for a maintainer to look at it#1renovate[bot] (automation)idle

Releases

Up to date
  1. 2.0.0io.descoped.config:dynamic-configuration
All 1 held

Latest commits

Commit log

Documentation

No documents under docs/.