Also very neat. As far as I know, struts is using a pre-1 version of Guice internally. Upgrading it to a recent version is do-able, but costs a lot of time. Also this might be a great challenge for the Struts Hackathon.
I also would like to point to http://onami.apache.org which might an additional spice to the Struts-soup with Guice. On Tue, Jul 16, 2013 at 10:18 PM, Ken McWilliams <ken.mcwilli...@gmail.com> wrote: > If we use Guice for DI we get its AOP features too? Not sure what Guice > offers for AOP but a before method point cut should allow you to return > what ever you want while preventing the method from actually doing > anything. Trick would be how to expose that... > http://code.google.com/p/google-guice/wiki/AOP > > Also once Guice is used I think the tags could stand for some DI, there are > large daunting inheritance hierarchies within the struts2 tag > implementations. > > > > > On Tue, Jul 16, 2013 at 1:41 PM, Christian Grobmeier > <grobme...@gmail.com>wrote: > >> Oh yeah. I forgot about it. Great link, thanks. >> Maybe a challenge for Struts 3 or the upcoming Struts Hackathon? >> >> On Tue, Jul 16, 2013 at 9:35 PM, Paul Benedict <pbened...@apache.org> >> wrote: >> > If the decorator pattern is to supported in Struts, I vote it should be >> > based on JEE 6 Interceptor. >> > http://docs.oracle.com/javaee/6/tutorial/doc/gkeed.html >> > >> > Paul >> > >> > >> > On Tue, Jul 16, 2013 at 2:30 PM, Christian Grobmeier < >> grobme...@gmail.com>wrote: >> > >> >> Hi, >> >> >> >> On Fri, Jul 12, 2013 at 11:42 AM, Miguel Almeida <mig...@almeida.at> >> >> wrote: >> >> > I'd like to discuss with you an idea that came up a while ago while >> >> > trying to fulfil this need: >> >> > >> >> > As a developer >> >> > I want to unit test annotations in my actions without having to run >> the >> >> > method's body >> >> > So that I can TDD more effectively and have quicker unit tests. >> >> > >> >> > Namely, imagine an action: >> >> > >> >> > @SecuredRoles("admin") >> >> > public String adminStuff(){ >> >> > ... >> >> > } >> >> > >> >> > It would be interesting to have a way to test the @SecuredRoles >> without >> >> > having to run the method's body. >> >> >... >> >> > It would be very interesting to support the Decorator Pattern in >> Struts >> >> > actions. What are your thoughts on it? >> >> >> >> I am currently unsure if it would be so much benefit over the >> >> interceptors we already have. >> >> I mean, you can mock interceptors with actions, they are testable. >> >> Maybe you can elaborate a bit more on that, because I think i missed >> >> your key point. >> >> >> >> reading this message I was thinking if looking at AOP would make >> >> sense. What are your feeling on >> >> having an AOP plugin which supports some AOP framework? >> >> >> >> or what were your ideas for the implementation inside struts? >> >> >> >> Cheers >> >> >> >> >> >> >> >> >> >> -- >> >> http://www.grobmeier.de >> >> https://www.timeandbill.de >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org >> >> For additional commands, e-mail: dev-h...@struts.apache.org >> >> >> >> >> > >> > >> > -- >> > Cheers, >> > Paul >> >> >> >> -- >> http://www.grobmeier.de >> https://www.timeandbill.de >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org >> For additional commands, e-mail: dev-h...@struts.apache.org >> >> -- http://www.grobmeier.de https://www.timeandbill.de --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org