On Nov 20, 1:45 pm, Chris Ward <[email protected]> wrote:
> Can anyone give me a pointer on how to make this work or suggest a
> better design practice?

You should loop over the superclasses in the TypeListener.hear()
method:
  public <T> void hear(TypeLiteral<T> typeLiteral, TypeEncounter<T>
typeEncounter) {
    Class<?> raw = typeLiteral.getRawType();
    for (Class<?> c = raw; c != Object.class; c = c.getSuperclass()) {
      ...
    }
  }

--

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


Reply via email to