The stripes-spring project is only for action beans.  This works for any 
stripes components (interceptors, converters, formatters, action bean context, 
factories, etc.) as well as fields in your action bean that are instantiated 
during binding.  I usually don't make entities spring beans, but I've seen some 
people do that..

And it's real simple... just extend object factory and put the package name in 
your Extension.Packages.  

IMO this is the cleanest way, ObjectFactory is the correct hook instead of 
sub-classing every factory.  This is probably one reason why it was created for 
1.6.  I'd like to see all the existing spring stuff deprecated, and a new 
SpringObjectFactory, EJB3ObjectFactory, etc make it into the trunk.
 
I haven't really had time to test it too thoroughly, I'm not sure why there are 
6 or so variants of newInstance in there. I did override the few that were 
actually referenced by another class within stripes to check my spring context 
first, and as far as I can tell it works great, very clean.

-----Original Message-----
From: Dmitri Colebatch [mailto:[email protected]] 
Sent: Wednesday, June 24, 2009 8:50 AM
To: [email protected]
Subject: Re: [Stripes-users] Spring managed action beans - any change?

> Using the current trunk (not released yet .. I can?t wait), I?ve extended 
> DefaultObjectFactory, and overrode the newInstance methods to look in my 
> spring context for a matching bean first.  This simple trick has given me 
> full transparent spring integration of all stripes components - action beans, 
> converters, interceptors, etc all configured in my spring context.  =)  I?ve 
> been waiting for this for a long time, can?t wait for this to make it into 
> production.  Now if I could just get jboss to do the same thing for servlet 
> listeners etc I?d be in great shape. =)
>
> If you can?t use the trunk or wait for 1.6, there?s not much hope.

What's the difference between this and the stripes spring work?  Is it
the same functionality, but built in?  Or does it do something else?

I'm perfectly happy to use trunk - this is just a little side-project.

Cheers,
Dim

------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to