Hi,
I want to build a list of pojos. I try to understand the groovy
builder concept. I see
http://groovy.codehaus.org/GroovyMarkupI doesn't understand what are people, person, and so on. Properties ?
Methods ? Setters ?... They say "someBuilder object has a method
called 'people'", but where is this method ? I don't see any "new
MyPojo()" in the exemple, so I suppose there's some HashMap somewhere
?
I should want to do something like :
class Pojo
{
def propertyOne;
def propertyTwo;
}
myList = {
new Pojo(propertyOne: new Foo(), propertyTwo: new BigFoo()),
new Pojo(propertyOne: new Foo(), propertyTwo: new BigFoo())
}
Is it that a "markup builder" ?
Thanks.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email