David C. Hicks | 9 May 06:49

Re: [groovy-user] FactoryBuilderSupport question.

Danno,
When I returned to my code I found that I had tossed it to get something 
else done.  Once I recreated it, everything seems to be happy.  I have 
forgotten to wire something up properly in one of the factories.  
Anyway, thanks for the offer to help.  Looks like I'm in good shape for now.
Thanks,
Dave

Danno Ferrin wrote:
> FactoryBuilderSupport absolutely supports multiple classes at the same 
> level, otherwise SwingBuilder would be dead in the water.  I can't 
> quite wrap my head around why this would fail, however.  It may be 
> that some importiant details have been stripped form what I can only 
> assume is a sanitized example.  Do you have any other info that could 
> help, such as a stack trace or concrete code? (assuming it can be made 
> suitable for public release).  At what point does it fail  
> registerFactory?  durring the build?
>
> On Thu, May 8, 2008 at 2:42 PM, David C. Hicks <dhicks@... 
> <mailto:dhicks@...>> wrote:
>
>     Hi folks,
>
>     I've been trying to create a builder for a project I'm working on,
>     but have met with some resistance.  I have a structure that looks
>     something like this...
>
>     a() {
>       b(){
>          c()
>          c()
>       }
>       b() {
>          c()
>       }
>       d()
>       d()
>     }
>
>     Note that "b" and "d" live at the same level.  My understanding is
>     that this is perfectly legitimate, but as soon as I try to add the
>     factory for "d," I start getting errors indicating that "d"
>     doesn't have a method getC(), which leads me to believe that
>     somehow FactoryBuilderSupport doesn't support multiple classes on
>     the same level.  Can anyone confirm or refute this inclination?
>      What might I be doing wrong that would cause such an error?
>
>     Thanks,
>     Dave
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe from this list, please visit:
>
>       http://xircles.codehaus.org/manage_email
>
>
>
>
>
> -- 
> ------------------------------------------------------
> I'm Danno Ferrin, and I approved this message. 

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Gmane