On 2010-03-16 15.11, Philippe Van Dyck wrote:
today I discovered project Lombok (http://projectlombok.org/) and I
wonder if it could be adapted/integrated/cannibalized to define
properties in qi4j.
Using something like @Property or exposing a PoJo interface to
entities/values should really improve qi4j's learning curve (everybody
*understands* a pojo) and simplify integration with other tools (like
Wicket's Model).
Well.. right now you declare a property like so:
Property<String> foo();
To me this is valuable since I know that it's a property (as opposed to
an Association), and it's trivial for me as a framework writer to do
lazy-loading of it (on get()), and also detect when it has changed (on
set()).
How do I do lazyloading of fields?
How do I detect when a property-fields changes?
How do I know a field is a property and not an association?
How do I get meta-info about a field? (compare to Property which has
meta-info built in)
And so on...
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev