Spring will instantiate the interceptors (and actions and results) if spring is able to resolve the name given as a bean. Think of it like this, if you specify an interceptor like so - <interceptor name="execAndWait" class="executeAndWaitInterceptorBean"/> and "executeAndWaitInterceptorBean" resolves as a bean name in your spring context, then it will use the resolved bean. If the name is not resolved as a bean in spring, struts will revert back to its normal mechanisms for instantiation. The other thing to be aware of is autowiring. If you set the spring plugin autowiring to byname or bytype, then the plugin will attempt to wire in dependencies that match (by name or match by type) for any of the objects that the factory is instantiating.
-Wes On Tue, Jun 28, 2011 at 8:37 AM, roger <roger.var...@googlemail.com> wrote: > > Hi > > If I use the struts 2 spring plugin, will the struts framework use spring to > instantiate the standard filters (i.e. ExecuteAndWaitInterceptor) or does > the struts framework continue to instantiate them? > > Regards > > -- > View this message in context: > http://struts.1045723.n5.nabble.com/Spring-Plugin-and-Interceptor-instantiation-tp4531621p4531621.html > Sent from the Struts - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org