struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: dynamic interceptor insertion
Date Thu, 10 Jul 2014 13:20:25 GMT
2014-07-09 20:01 GMT+02:00 Gildas de Cadoudal <gildas.de.cadoudal@gmail.com>:
> thanks Lukasz, but ActionProxy#getConfig()#getInterceptors() lists the
> interceptors but not the name of the stack used by the action

You can always @Inject Configuration and traverse over it, anyway
without large changes inside S2 it isn't possible to simple inject
interceptor. I think the simplest option is to mark action with
interface to activate given interceptor. In the same way as
ServletConfigInterceptor injects request (RequestAware), session
(SessionAware) and so on.


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