Nathan,

Thanks for the clear and direct answer. That makes a lot of sense. While I realize there are some clear advantages to constructor based injection I personally don't mind setter based injection so that helps me - and others - decide whether or not I want to leverage 1.6 today for this feature... .

Freddy - I don't believe I was being critical of any solution you offered - though I was hoping for a clear answer and what I had been using in the interim.

Thanks,

--Nikolaos



Nathan Maves wrote:
I think one area that I lot of us are looking to use the new
ObjectFactory is for constructor injection of our action classes.
This was never possible in the current stripes version.

On Mon, Jun 21, 2010 at 6:57 PM, Freddy Daoud <xf2...@fastmail.fm> wrote:
What exactly is all this "hype" around this ObjectFactory? Can some one
please explain what it is and why it is so useful???
It basically lets you hook in to the creation of Stripes objects: action
beans, type converters, formatters, etc. so that you can take control
of how these objects are instantiated. For example, you can inject
Spring dependencies. But really, you can do whatever you want.

We have no issues simply using the following to wire up @Autowired,
@Service, @Resource... annotated classes with Spring (along with a
handful of top level package component-scans):
SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);
No problem. I was giving one possible solution, but certainly not the
only solution, nor necessarily the best solution.

So what am I missing ;-) ????
Well, maybe nothing. That's up to you to decide ;)

Cheers,
Freddy

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-user
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to