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
- Host: GitHub
- URL: https://github.com/httpmarco/aeon
- Owner: HttpMarco
- License: apache-2.0
- Created: 2022-12-21T08:56:32.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-25T17:52:52.000Z (12 months ago)
- Last Synced: 2025-02-25T18:41:29.559Z (12 months ago)
- Topics: configuration, java
- Language: Java
- Homepage:
- Size: 347 KB
- Stars: 23
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
****
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