Guice eager/lazy singleton instantiations
问题 I'm having some troubles understanding how Guice's singleton instantiations works. I've read the available documentation (here - http://code.google.com/p/google-guice/wiki/Scopes ), but I still can't figure out some things: 1) I've integrated Guice with Tomcat, and I've set up some bindings in a ServletModule: bind(MyServlet.class).asEagerSingleton(); serve("myUrl").with(MyServlet.class); serve("myOtherUrl").with(MyOtherServlet.class); (where MyOtherServlet class has a @Singleton annotation