Comment by robotta...@gmail.com:

Have a generic Servlet or Filter implementation? You'll need the Key class.

Use the following:

TypeLiteral<SessionFilter<NtsSession>> tl = new TypeLiteral<SessionFilter<NtsSession>>()
bind(tl);
filter("/*").through(Key.get(tl));

And something very similar to do a servlet, replace filter -> servlet and through -> with.

For more information:
http://code.google.com/p/google-guice/wiki/ServletModule

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-guice-dev+unsubscr...@googlegroups.com.
To post to this group, send email to google-guice-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/google-guice-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to