Dienstag, 9. März 2010

proposal SnakeYAML - Annotation YAML Loader

Andrey posts a comment on my blog post "YAML with snakeyaml" with the following question: "But I recognize a need to help pure Java<->YAML transformations.
Do you have an idea how the API may look like ? (to say just 'as in XStream' does not help much...)"

So here a first shot how a annotation based framework can look like:



here the YAML code:



and here a proposal for the API client code:



Feel free for comments ...