https://github.com/vitalibo/config
configuration library for JVM languages using YAML files
https://github.com/vitalibo/config
configuration-library yaml
Last synced: about 1 month ago
JSON representation
configuration library for JVM languages using YAML files
- Host: GitHub
- URL: https://github.com/vitalibo/config
- Owner: vitalibo
- Created: 2022-01-03T04:16:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-07T02:37:04.000Z (over 4 years ago)
- Last Synced: 2025-10-24T01:27:27.357Z (8 months ago)
- Topics: configuration-library, yaml
- Language: Java
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Config
Configuration library for JVM languages with support YAML syntax.
This library extends functionality of [config](https://github.com/lightbend/config) developed by Lightbend (ex Typesafe).
### Usage
You can find published releases on my public maven repository.
```xml
com.github.vitalibo
config_1.4.1
1.0.0
com.github.vitalibo.mvn
https://raw.github.com/vitalibo/public-maven-repository/release/
true
always
```
### API example
Yaml syntax currently supports only `load(String)`, `parseResourcesAnySyntax(String)` and `parseResources(String)` methods.
```java
import com.github.vitalibo.config.ConfigFactory;
Config conf = ConfigFactory.load("application.yaml");
int bar1 = conf.getInt("foo.bar");
Config foo = conf.getConfig("foo");
int bar2 = foo.getInt("bar");
```