Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] parent access when using FactoryBuilderSupport

Skeptic .

2010-03-07

Replies: Find Java Web Hosting

Author LoginPost Reply


Hi,
Why we don't have access to the parent in newInstance, but only in setParent ?
Because I want the objects I create to have a pointer to their parent, I have to create a temporary object in newInstance (I use a map) and create the real object in setParent.
Is there a way to avoid this ?

Also I'm still trying to figure out if I can do this :
builder.xxx() {
 aaa(...) aaa(...)  yyy(...,       closure: {   aaa(...)         aaa(...)       })} where ... stands for attributes.
So, inside yyy is a closure used to delay the evaluation, where I want to use aaa which is a registered factory.
Thanks for any help.
           
_________________________________________________________________
Emmenez vos contacts faire un tour.
http://go.microsoft.com/?linkid=9712963
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.