struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject InterceptorListeners
Date Tue, 05 Nov 2013 08:58:17 GMT
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
View raw message