Right, that sounds reasonable, and does not sound too sketchy to me, I just need to do a DB query for a config value, and don't want it to happen for every action.
M. >-----Original Message----- >From: Dale Newfield [mailto:d...@newfield.org] >Sent: Wednesday, September 16, 2009 4:12 PM >To: Struts Users Mailing List >Subject: Re: Calling an "init" method on an interceptor > >Mike Baranski wrote: >> I'm using Spring IOC, and need struts to call an init() method on an >> interceptor *after* spring does its injection. > >If you can detect in code when all the injections are done (all >associated private members are non-null), then you could add a >conditional call to your init method to the end of each DI setter, which >should result in it getting called once as the last injection >completes... (kind of a hack, but it should work) > >-Dale > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >For additional commands, e-mail: user-h...@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org