Hi,

I am using Guice AOP to intercept some calls using Annotations. To use
the Guice AOP example,

public class NotOnWeekendsModule extends AbstractModule {
  protected void configure() {
    bindInterceptor(Matchers.any(),
Matchers.annotatedWith(NotOnWeekends.class),
        new WeekendBlocker());
  }
}

My class is being instantiated by the injector.

If I annotate on the class type, it does not recognized, it only gets
recognized at method level. I guess, it is because the proxy
frameworks (cglib i suppose), don't know how to handle class level
annotations. Is there a way I can get my interceptor to intercept
calls if I annotate on class type? Ideally I would like to intercept
all public/default/protected scoped methods without having to annotate
every individual method.

Thanks,

Kartik

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to