Re: [bluprint + xbean-reflect] Use of factories

2009-04-24 Thread Dain Sundstrom
On Apr 23, 2009, at 2:19 PM, David Blevins wrote: Curious what Dain's input on this might be. A lot of this deep object graph work was driven by Plexus which of course also has post construct callbacks. The ObjectGraph code was written to address the problems with coordinating the

Re: [bluprint + xbean-reflect] Use of factories

2009-04-24 Thread Guillaume Nodet
On Fri, Apr 24, 2009 at 19:27, Dain Sundstrom d...@iq80.com wrote: On Apr 23, 2009, at 2:19 PM, David Blevins wrote: Curious what Dain's input on this might be.  A lot of this deep object graph work was driven by Plexus which of course also has post construct callbacks. The ObjectGraph code

Re: [bluprint + xbean-reflect] Use of factories

2009-04-23 Thread Guillaume Nodet
Right, but in addition to instanceFactory, we also need to provide the methodFactory. So if we have class ColorFactory { public void setFoo(String foo) { } public Color createColor(String type) { } } class RGBColor extends Color { public void setR(int r) {} public void setG(int g) {}

Re: [bluprint + xbean-reflect] Use of factories

2009-04-23 Thread Guillaume Nodet
Right, but it might we worth considering enhancing xbean-reflect to better support our needs. For example initialization and destruction methods are now wired in blueprint, but a better place would be xbean imho. Constructor injection is a bit of a magic in xbean right now, and there's no clear

Re: [bluprint + xbean-reflect] Use of factories

2009-04-23 Thread David Blevins
Curious what Dain's input on this might be. A lot of this deep object graph work was driven by Plexus which of course also has post construct callbacks. -David On Apr 23, 2009, at 2:02 AM, Guillaume Nodet wrote: Another thing is related to initialization of beans and cyclic

Re: [bluprint + xbean-reflect] Use of factories

2009-04-23 Thread David Blevins
To add onto this thought process, a lot of these features are also needed by the Java Context and Dependency Injection (JCDI, JSR-299) specification. It has type base constructor args, reusable instance factories, and some other things like support for setters that have multiple