Chameleon

A light-weight library to manage the configurations

License

License

Categories

Categories

Net JSON Data
GroupId

GroupId

net.meku.chameleon
ArtifactId

ArtifactId

chameleon-persist-json
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

Chameleon
A light-weight library to manage the configurations
Project URL

Project URL

https://github.com/shoopman/chameleon
Source Code Management

Source Code Management

https://github.com/shoopman/chameleon

Download chameleon-persist-json

How to add to project

<!-- https://jarcasting.com/artifacts/net.meku.chameleon/chameleon-persist-json/ -->
<dependency>
    <groupId>net.meku.chameleon</groupId>
    <artifactId>chameleon-persist-json</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/net.meku.chameleon/chameleon-persist-json/
implementation 'net.meku.chameleon:chameleon-persist-json:1.0.3'
// https://jarcasting.com/artifacts/net.meku.chameleon/chameleon-persist-json/
implementation ("net.meku.chameleon:chameleon-persist-json:1.0.3")
'net.meku.chameleon:chameleon-persist-json:jar:1.0.3'
<dependency org="net.meku.chameleon" name="chameleon-persist-json" rev="1.0.3">
  <artifact name="chameleon-persist-json" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.meku.chameleon', module='chameleon-persist-json', version='1.0.3')
)
libraryDependencies += "net.meku.chameleon" % "chameleon-persist-json" % "1.0.3"
[net.meku.chameleon/chameleon-persist-json "1.0.3"]

Dependencies

compile (2)

Group / Artifact Type Version
net.meku.chameleon : chameleon-core jar 1.0.3
org.springframework.boot : spring-boot-starter-json jar 2.1.7.RELEASE

Project Modules

There are no modules declared in this project.

Introduction

Chameleon is a light-weight library to manage the configurations of an application. It can support for distributed systems by redis module.

Usage

Introduce to your project

Gradle build.gradle

    compile("net.meku.chameleon:chameleon-starter:1.0.2")

Maven pom.xml

	<dependency>
		<groupId>net.meku.chameleon</groupId>
		<artifactId>chameleon-starter</artifactId>
		<version>1.0.2</version>
	</dependency>
        

Import ConfigService and have fun.

    @Autowired
    private ConfigService configService;

    // Add or update a configuration
    configService.save(configable);

    // Get the value of a configuration
    String s1 = configService.getString(key1);
    int i1 = configService.getInt(key2);

Versions

Version
1.0.3
1.0.2
1.0.1
1.0.0