The first draft of PODAM is ready. Currently the framework sets the initial state of a POJO with random values. The supported types are:
- Primitive types
- Wrapper classes
- String
- arrays of objects
- arrays of primitives
- Any other object which either has a no-arg constructor or a static factory which takes no arguments
Known limitations:
- PODAM does not set the state of complex object graphs (In roadmap)
- Custom annotations as defined in my previous article are yet not supported (in roadmap)
- If a class does not expose a public, no-arg constructor, and it does not expose a public static factory which takes no arguments the attribute value is not set
You should be able to browse the Jemos Maven Repository and search for PODAM. Currently PODAM is in version 1.0.0-SNAPSHOT and the source and test code are available.
PODAM runs under the MIT license.
Currently PODAM can fill the full state of the attached POJO (OneDimensionalTestPojo). Download OneDimensionalTestPojo
It would be nice to hear from you of any critics, suggestions, comments, issues.
Happy technology.
Cet article est très intéressant, ce fut effectivement ce que je cherchais, et je suis heureux de venu ici et merci pour le partage de la présente pour nous.!
Posted by: casinos en ligne | Monday, 14 November 2011 at 14:47