struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ali Akhtar <ali.rac...@gmail.com>
Subject Re: InterceptorListeners
Date Tue, 05 Nov 2013 09:00:19 GMT
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>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
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

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