Chameleon

A light-weight library to manage the configurations

License

License

Categories

Categories

Net
GroupId

GroupId

net.meku.chameleon
ArtifactId

ArtifactId

chameleon-starter
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-starter

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
net.meku.chameleon : chameleon-redis jar 1.0.3
net.meku.chameleon : chameleon-persist-json jar 1.0.3
org.springframework.boot : spring-boot-autoconfigure 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