Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide YAML support in config files #34

Closed
bbossola opened this issue Jun 16, 2013 · 4 comments
Closed

Provide YAML support in config files #34

bbossola opened this issue Jun 16, 2013 · 4 comments

Comments

@bbossola
Copy link
Contributor

With YAML we will be able to describe entire objects, rather than properties: it fits very well the mechanics for complex configuration.
http://en.wikipedia.org/wiki/YAML
http://yaml.org/

I suggest to use SnakeYAML as java library:
http://code.google.com/p/snakeyaml/

@lviggiano
Copy link
Collaborator

related to #14 and #2

@lviggiano
Copy link
Collaborator

My initial idea was to implement some mapping between the YAML format and the Properties format as I did with XML (see #5 as implemented in XMLLoader )
The loaders are now pluggable with Loaders.registerLoader(), so I will probably implement just the xml and the properties format, since the parsers for those are already available in JRE, and provide to the user the possibility to register additional loaders to the ConfigFactory.

If I were using YAML I would probably go for SnakeYaml directly which provides a good serialization stack between yaml and java objects. I can't see the advantage to use OWNER in this case.

@lviggiano
Copy link
Collaborator

won't fix. at least, not for now.

@randyhbh
Copy link

Can we add this support?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants