Dynamic Configuration Parent

JSON Dynamic Properties

Лицензия

Лицензия

Группа

Группа

com.comcast.dynocon
Идентификатор

Идентификатор

dynocon-parent
Последняя версия

Последняя версия

1.1.0
Дата

Дата

Тип

Тип

pom
Описание

Описание

Dynamic Configuration Parent
JSON Dynamic Properties
Ссылка на сайт

Ссылка на сайт

https://github.com/Comcast/dynamic-configuration
Система контроля версий

Система контроля версий

https://github.com/Comcast/dynamic-configuration

Скачать dynocon-parent

Имя Файла Размер
dynocon-parent-1.1.0.pom 4 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.comcast.dynocon/dynocon-parent/ -->
<dependency>
    <groupId>com.comcast.dynocon</groupId>
    <artifactId>dynocon-parent</artifactId>
    <version>1.1.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.comcast.dynocon/dynocon-parent/
implementation 'com.comcast.dynocon:dynocon-parent:1.1.0'
// https://jarcasting.com/artifacts/com.comcast.dynocon/dynocon-parent/
implementation ("com.comcast.dynocon:dynocon-parent:1.1.0")
'com.comcast.dynocon:dynocon-parent:pom:1.1.0'
<dependency org="com.comcast.dynocon" name="dynocon-parent" rev="1.1.0">
  <artifact name="dynocon-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.comcast.dynocon', module='dynocon-parent', version='1.1.0')
)
libraryDependencies += "com.comcast.dynocon" % "dynocon-parent" % "1.1.0"
[com.comcast.dynocon/dynocon-parent "1.1.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

  • dynocon-core
  • dynocon-dynamodb
  • dynocon-s3

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.

com.comcast.dynocon
Comcast brings together the best in media and technology to create the world's best entertainment and online experiences

Версии библиотеки

Версия
1.1.0
1.0.4
1.0.3