An open API service indexing awesome lists of open source software.

https://github.com/httpmarco/aeon

A de-/serialization library to manage simple configurations
https://github.com/httpmarco/aeon

configuration java

Last synced: 12 months ago
JSON representation

A de-/serialization library to manage simple configurations

Awesome Lists containing this project

README

          

Stars Badge
Forks Badge
Pull Requests Badge
Issues Badge
GitHub contributors
[![](https://jitpack.io/v/HttpMarco/Aeon.svg)](https://jitpack.io/#HttpMarco/Aeon)


SUPPORT DISCORD

****

Gradle Dependency

````groovy
implementation 'com.github.HttpMarco:Aeon:TAG'
````
****

Maven Dependency
````xml

com.github.HttpMarco
Aeon
Tag

````
***

Examples
(Simple property object)

````java

@Getter
@Options(path = "src/test/java/net/http/aeon/", name = "config")
public class TestConfiguration {

private final String name;
private final int testValue;
private final TestObject testObject;

public TestConfiguration() {
this.name = "test";
this.testValue = 22;
this.testObject = new TestObject();
}
}
````

Save, read & auto manage of configuration

````java
public void handle(){
TestConfiguration insert=Aeon.insert(new TestConfiguration());
System.out.println(insert.getTestValue());
}
````

Result:
````
testObject: [
value: 20
]
name: test
testValue: 22
````

Add header or spaces for configuration field
`````java
@Comment(comment = "Test comment", type = Emphasizing.PRIMARY)
`````

****

Todo 'Release':

- [ ] Handle of null parameters
- [ ] rename for configuration files
- [ ] Support Map, Pair
- [ ] Add comments for fields
- [ ] remove duplicated renamed fields
- [ ] Customize handler for object serialization