Skip to content

Dynocon library allows your application to get access to the latest configuration changes without restarting.

License

Notifications You must be signed in to change notification settings

ghas-results/dynamic-configuration

 
 

Repository files navigation

Dynamic Configuration

Comcast Dynamic Configurattion - dynocon is on the mission of adapting the Configuration-as-a-Code concept.

Dynocon library allows your application to get access to the latest configuration changes without restarting.

JSON is a first-class citizen and supported out of the box as well as the traditional .properties format.

Installation

<dependency>
	<groupId>com.comcast.dynocon</groupId>
	<artifactId>dynocon-core</artifactId>
	<version>1.1.0</version>
</dependency>

Example

If your JSON configuration looks like this:

{
  "myPropertyName": "value1"
}

or you are using traditional .properties file:

myPropertyName = value1

You could always access the property as following:

public static final Property<String> MY_PROPERTY = new Property<>("myPropertyName", String.class);
... SNIP ...
Assert.assertEquals("value1", MY_PROPERTY.get());

If the value in the file will be updated, you don't need to restart the application, MY_PROPERTY.get() will return the new value.

See Wiki for a full description of the dynocon library.

About

Dynocon library allows your application to get access to the latest configuration changes without restarting.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%