Re: dynamic interceptor insertion

2014-07-10 Thread Lukasz Lenart
2014-07-09 20:01 GMT+02:00 Gildas de Cadoudal : > 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 possib

Re: dynamic interceptor insertion

2014-07-09 Thread Gildas de Cadoudal
thanks Lukasz, but ActionProxy#getConfig()#getInterceptors() lists the interceptors but not the name of the stack used by the action /** * Gildas de Cadoudal * 115, rue Mazarin * 33000 Bordeaux * (+33) (0)6 60 13 80 90 * (+33) (0)9 50 15 62 40 * gildas.de.cadou...@gmail.com **/ On Wed, Jul

Re: dynamic interceptor insertion

2014-07-09 Thread Lukasz Lenart
2014-07-08 15:30 GMT+02:00 Gildas de Cadoudal : > ActionInvocation.getStack () does not give the interceptor stack, at > least that's what I think No it doesn't > I want to know the stack to insert an interceptor to the execution of > actions using particular stack. ActionProxy#getConfig()#getIn

Re: dynamic interceptor insertion

2014-07-08 Thread Gildas de Cadoudal
3) (0)9 50 15 62 40 * gildas.de.cadou...@gmail.com **/ On Tue, Jul 8, 2014 at 2:06 PM, Martin Gainty wrote: > > > >> From: gildas.de.cadou...@gmail.com >> Date: Tue, 8 Jul 2014 12:36:14 +0200 >> Subject: Re: dynamic interceptor insertion >> To: dev@stru

RE: dynamic interceptor insertion

2014-07-08 Thread Martin Gainty
> From: gildas.de.cadou...@gmail.com > Date: Tue, 8 Jul 2014 12:36:14 +0200 > Subject: Re: dynamic interceptor insertion > To: dev@struts.apache.org > > I look towards the ActionInvocation or ActionProxyFactory but the > problem with this solution is that we do n

Re: dynamic interceptor insertion

2014-07-08 Thread Gildas de Cadoudal
no i don't have problems with jar detection, thanks /** * Gildas de Cadoudal * 115, rue Mazarin * 33000 Bordeaux * (+33) (0)6 60 13 80 90 * (+33) (0)9 50 15 62 40 * gildas.de.cadou...@gmail.com **/ On Tue, Jul 8, 2014 at 12:39 PM, Lukasz Lenart wrote: > 2014-07-08 12:36 GMT+02:00 Gildas d

Re: dynamic interceptor insertion

2014-07-08 Thread Lukasz Lenart
2014-07-08 12:36 GMT+02:00 Gildas de Cadoudal : > To clarify, my need: I want to allow the inclusion of a library in the > classpath enable features brought by it without changing the > configuration of the main project. If just want to detect a jar on classpath take a look on LoggerFactory - it d

Re: dynamic interceptor insertion

2014-07-08 Thread Gildas de Cadoudal
I look towards the ActionInvocation or ActionProxyFactory but the problem with this solution is that we do not know what Stack is executed. I also look towards a placeholder, but the problem is the same as previously. To clarify, my need: I want to allow the inclusion of a library in the classpath

Re: dynamic interceptor insertion

2014-07-03 Thread Greg Huber
What would be useful, if you could have a place holder in the interceptor stack and then inject the interceptor element you need on the action? Copying the whole lot each time makes a lot more maintenance and more prone to errors. On 3 July 2014 02:32, Paul Benedict wrote: > Most of the time,

Re: dynamic interceptor insertion

2014-07-02 Thread Paul Benedict
Most of the time, if not 99% of the time, all I want to do is add an interceptor before or after some known interceptor. As I've gone on record before, I want this feature too :-) Cheers, Paul On Wed, Jul 2, 2014 at 7:16 PM, Ken McWilliams wrote: > Thank you Lukasz I'll put it on my todo lis

RE: dynamic interceptor insertion

2014-07-02 Thread Martin Gainty
> Date: Wed, 2 Jul 2014 18:16:11 -0600 > Subject: Re: dynamic interceptor insertion > From: ken.mcwilli...@gmail.com > To: dev@struts.apache.org > > Thank you Lukasz I'll put it on my todo list ;) > > Martin, interceptor stacks are efficient I think the scope stru

Re: dynamic interceptor insertion

2014-07-02 Thread Ken McWilliams
Thank you Lukasz I'll put it on my todo list ;) Martin, interceptor stacks are efficient I think the scope struts2 has is very good, still it is fun to push boundaries, one of those fun higher initiatives would be a Web IDE for struts2. You could dynamically build an interceptor stack, and you cou

Re: dynamic interceptor insertion

2014-07-02 Thread Lukasz Lenart
2014-07-02 19:38 GMT+02:00 Ken McWilliams : > This is somethings I've wanted to do (dynamically change the interceptor > stack), I'm not at a development machine so have not checked the > plausibility of the following but would like input: > > Is it possible to create a custom ActionInvocation obje

RE: dynamic interceptor insertion

2014-07-02 Thread Martin Gainty
> Date: Wed, 2 Jul 2014 11:38:13 -0600 > Subject: Re: dynamic interceptor insertion > From: ken.mcwilli...@gmail.com > To: dev@struts.apache.org > > This is somethings I've wanted to do (dynamically change the interceptor > stack), I'm not at a development

Re: dynamic interceptor insertion

2014-07-02 Thread Ken McWilliams
This is somethings I've wanted to do (dynamically change the interceptor stack), I'm not at a development machine so have not checked the plausibility of the following but would like input: Is it possible to create a custom ActionInvocation object, for this purpose? Is it possible to essentially r

Re: dynamic interceptor insertion

2014-07-02 Thread Lukasz Lenart
2014-06-27 10:44 GMT+02:00 Gildas de Cadoudal : > Hi all, > > I would like to dynamically insert an interceptor to a specific place > in existing stack. > Of course I also like the stacks referencing the one where I insert > the interceptor also take advantage of this configuration change. > > Prac