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 ...


  1. Just what i'd need right now! and probably later also, keep it up!

  2. Very, very good.

    Any chance of this making it into SnakeYAML? Have you spoken with Andrey Somov about this?