struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Benitez <steven.beni...@gmail.com>
Subject Re: InterceptorListeners
Date Tue, 05 Nov 2013 09:05:42 GMT
Why not just create an interceptor and run it before or after the
interceptor you need? What specific use case does this address?

On Tuesday, November 5, 2013, Ali Akhtar wrote:

> It could be useful, especially for the interceptors in the default stack.
>
>
> On Tue, Nov 5, 2013 at 1:58 PM, Lukasz Lenart <lukaszlenart@apache.org<javascript:;>
> >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-unsubscribe@struts.apache.org <javascript:;>
> > For additional commands, e-mail: dev-help@struts.apache.org<javascript:;>
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message