> 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 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 could step though the stack keeping an eye on
> the action as part of the debug process, (values before and after
> interceptor)...
>
> So in short no there isn't anything that can't be done with non dynamic
> stacks, but in the name of learning this web framework and making things
> more efficient- being able to dynamically alter the stacks is very
> interesting. At the end the the day the idea was to write out a non-dynamic
> struts.xml for production deployment.
MG>http://struts.apache.org/release/2.0.x/docs/architecture.html
MG>class reflection and introspection using classloaders are usually the first
step away from configuration (towards DI)
MG>with DI (specifically Guice DI) configuration files are almost impossible to
locate in any framework using factory pattern
MG>looking at the above Struts architecture doc do you see perhaps StrutsBean
as Spring AOP crosscut object traversing
MG>interceptor(s)?
MG>action?
MG>once this dynamic architecture has been refactored to accomodate DI (using
crosscutting objects or CL reflection?)
MG>building out a plugin (for eclipse) to export these DI(crosscutting?)
features to the perspective could be achieved
MG>curious as to what you and Lukasz think what the new dynamic architecture
should look like?
MG>thanks, Martin
>
>
> On Wed, Jul 2, 2014 at 1:12 PM, Lukasz Lenart <lukaszlen...@apache.org>
> wrote:
>
> > 2014-07-02 19:38 GMT+02:00 Ken McWilliams <ken.mcwilli...@gmail.com>:
> > > 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 recreate the functionality of
> > > ActionInvocation within an interceptor which then delegates to other
> > > interceptors?
> >
> > Hm... yeah, with custom ActionInvocation and ActionProxyFactory should
> > do the trick, check the REST Plugin to see what must be implemented to
> > create your own ActionInvocation
> >
> >
> > Regards
> > --
> > Ćukasz
> > + 48 606 323 122 http://www.lenart.org.pl/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
> > For additional commands, e-mail: dev-h...@struts.apache.org
> >
> >