Re: AOP interceptor: match only subclass methods

2009-06-14 Thread tchan
) {                         return method.getDeclaringClass().getPackage () // decide if you like this method or not                     }                 } Cheers Alen On Jun 13, 3:02 pm, tchan tks...@gmail.com wrote: Hi; Has anyone worked with the AOP interceptors in Guice much?  I'm used

AOP interceptor: match only subclass methods

2009-06-13 Thread tchan
Hi; Has anyone worked with the AOP interceptors in Guice much? I'm used to using full blown AspectJ in my other projects and am having difficulty reproducing some mix-in behaviour using plain AOP. I want to introduce a tracer on instance methods in certain packages. The catch is that I only

Re: Guice 2 SNAPSHOT: migrating from web.xml to ServletModule/GuiceFilter

2009-05-05 Thread tchan
Well, as a workaround, I've resorted to using this when I need to do a forward: protected static ServletRequest getUnderlyingRequest ( HttpServletRequest request ) { ServletRequest innerRequest = request; while ( innerRequest instanceof HttpServletRequestWrapper ) {

Re: Guice 2 SNAPSHOT: migrating from web.xml to ServletModule/GuiceFilter

2009-05-04 Thread tchan
Hey, thanks for the reply. I gave it a quick go (trunk build) and it to works with jsp out of the box but it is not perfect(calling include works but calling forward crashes). I am just using the snapshot build. You're doing req.getRequestDispatcher( /WEB-INF/jsp/test.jsp). I could be