It could be useful, especially for the interceptors in the default stack.
On Tue, Nov 5, 2013 at 1:58 PM, Lukasz Lenart <lukaszlen...@apache.org>wrote: > Hi, > > What do you think about adding possibility to create listeners which > will be executed before/after given interceptor? > > Something like this: > > public interface InterceptorListener { > > boolean accept(InterceptorMapping mapping); > > void beforeInterceptor(ActionInvocation invocation); > > void afterInterceptor(ActionInvocation invocation); > > } > > You can define them as a beens in struts.xml > > <bean type="com.opensymphony.xwork2.interceptor.InterceptorListener" > class="com.demo.MyInterceptorListener"/> > > > There are already few interceptors defined: > > https://cwiki.apache.org/confluence/display/WW/ActionEventListener > https://cwiki.apache.org/confluence/display/WW/DispatcherListener > https://cwiki.apache.org/confluence/display/WW/PreResultListener > > > Regards > -- > Ćukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org > For additional commands, e-mail: dev-h...@struts.apache.org > >