lol On Wed, Sep 23, 2009 at 10:06 AM, Martin Gainty <mgai...@hotmail.com> wrote: > > what you said originally about Interceptors being built only with Struts > specific org.apache.struts2.impl.StrutsObjectFactory > (and not spring's StrutsSpringObjectFactory and not > StrutsSpringObjectFactory) is true > > Spring does handle injected interceptors via setInterceptorNames of > ProxyFactoryBean > http://www.docjar.com/docs/api/org/springframework/aop/framework/ProxyFactoryBean.html#setInterceptorNames > > hth > Martin Gainty > ______________________________________________ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger > sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung > oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich > dem Austausch von Informationen und entfaltet keine rechtliche > Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen > wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire informez > l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci > est interdite. Ce message sert à l'information seulement et n'aura pas > n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > >> Date: Wed, 23 Sep 2009 09:23:44 -0700 >> Subject: Re: Interceptor IOC with Spring >> From: musa...@gmail.com >> To: user@struts.apache.org >> >> that makes sense, I use @Resource(name = "mybean") on my setter >> methods, so I guess it is just the annotations the ones that do not >> work. >> >> musachy >> >> On Wed, Sep 23, 2009 at 9:18 AM, Chris Pratt <thechrispr...@gmail.com> wrote: >> > In my struts.xml I have: >> > >> > <constant name="struts.objectFactory" value="spring"/> >> > >> > And at the top of my applicationContext.xml I have: >> > >> > <beans default-autowire="autodetect" xmlns=...> >> > >> > And my Interceptors are getting injected just fine. On another project, I >> > have autowiring turned off, but then you have to define each interceptor as >> > a bean in the applicationContext.xml and specifically define the objects >> > that get injected into it. >> > (*Chris*) >> > >> > On Wed, Sep 23, 2009 at 7:21 AM, Mike Baranski < >> > list-subscripti...@secmgmt.com> wrote: >> > >> >> Correct me if I'm wrong, please, but if I have an interceptor, it should >> >> get >> >> injected by spring. >> >> >> >> I have a bean I'm expecting, the set method written, and the bean defined >> >> in >> >> applicationContext. >> >> >> >> My main struts.xml has: >> >> >> >> <constant name="struts.objectFactory" >> >> value="org.apache.struts2.spring.StrutsSpringObjectFactory" /> >> >> >> >> My setter is not getting called, is there anything else I need to do? >> >> >> >> >> >> M. >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> >> >> > >> >> >> >> -- >> "Hey you! Would you help me to carry the stone?" Pink Floyd >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> > > _________________________________________________________________ > Hotmail: Free, trusted and rich email service. > http://clk.atdmt.com/GBL/go/171222984/direct/01/
-- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org