Hi

I'm implementing custom injection thanks to
http://code.google.com/docreader/#p=google-guice&s=google-guice&t=CustomInjections.
I'd like to inject only into the classes which are subclasses of some
class.

AbstractModule bindListener method accepts following Matcher :

Matcher<? super TypeLiteral<?>>

and of course Matchers.subclassesOf(MySuperClass.class) doesn't work.

How can I implement matcher with TypeLiteral ?
Using Matchers.any() from the example works fine but I do not want to
hear on every class.
I'm newbie in guice so probably the answer is simple, but right now I
can't figure out how to do this.

Thanks in advance
Marcin
--~--~---------~--~----~------------~-------~--~----~
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