|
From: <jue...@we...> - 2004-09-27 17:53:02
|
It feels a bit odd to have a Spring-managed bean with an = init(FilterConfig) method that gets called after its Spring = initialization (bean property population, InitializingBean) by a = J2EE-managed Filter proxy. The Spring context should be fully responsible for the lifecycle of its = beans. This means that no caller of getBean should call an initializing = method on a returned singleton instance... Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Colin Sampaleanu Sent: Monday, September 27, 2004 7:28 PM To: spr...@li... Subject: Re: [Springframework-developer] Let's add Acegi-SEcurity's FilterToBeanProxy directly to Spring I don't see that much choice in the matter, since the lifecycle of the=20 Filter is clearly defined. Really it lives as a subset of the lifecycle=20 of the webapp and associated appcontext. But I have no problem with delaying. Anybody that really needs it can=20 still use it by linking to Acegi, or ripping it out of the latter... j=FCrgen h=F6ller [werk3AT] wrote: >Colin, > >Actually, I'd prefer to defer this till 1.1.2. > >There are a couple of design issues to discuss there, for example = initialization of a javax.servlet.Filter bean in a Spring context: pass = through the FilterConfig there from the filter proxy in web.xml? Who = really drives the lifecycle of the target bean then? > >Anyway, please let's not add this on such short notice... > >Juergen > > >-----Original Message----- >From: spr...@li... >[mailto:spr...@li...]On Behalf >Of Colin Sampaleanu >Sent: Monday, September 27, 2004 5:46 PM >To: spr...@li... >Subject: [Springframework-developer] Let's add Acegi-SEcurity's >FilterToBeanProxy directly to Spring > > >For about 2-3 months I've been meaning to but kept forgetting to add = the=20 >Acegi-Security project's FilterToBeanProxy to Spring itself, since it's = >very useful for anybody doing filter-based stuff with Spring. Anybody=20 >mind if I add it in for 1.1.1, even at this late stage? > =20 >http://www.jdocs.org/acegi/0.6/api/net/sf/acegisecurity/util/FilterToBea= nProxy.html > >Both Ben and I originally worked on it. It's obviously working and well = >tested. > =20 > ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |