I'm a little confused as to how to use bindListener with a Matcher.
The following works fine:
bindListener( Matchers.any(), new MyListener() );
However, if I try to limit the matches to a smaller set, I get a
compilation error:
bindListener( Matchers.subclassesOf(Foo.class), new MyListener
() );
"The method bindListener(Matcher<? super TypeLiteral<?>>,
TypeListener) in the type AbstractModule is not applicable for the
arguments (Matcher<Class>, MyListener)"
Is there a proper way to limit the set of classes that a listener is
bound to?
Cheers,
Mike
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---