Take a look at http://code.google.com/p/google-guice/wiki/AOP and the
Binder.bindInterceptor
javadoc <http://tinyurl.com/39waxxd>.  The first parameter matches classes,
the second parameter matches methods.  So long as your matchers are set up
correctly,   If you match your classes properly and then use a
Matchers.any() for your methods, you'll match every eligible method in that
class.

sam

On Mon, Nov 29, 2010 at 9:33 AM, Aekold <[email protected]> wrote:

> Hi All!
>
> Just made my first AOP annotation work, but it works only on annotated
> methods. I put @Target({ElementType.METHOD, ElementType.TYPE}), and
> expected that it will work even if class was annotated. Is it possible
> to intercept all methods in annotated class or only method-level
> annotations will work?
>
> --
> 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]<google-guice%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-guice?hl=en.
>
>

-- 
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