Class GuiceServletContextListener

  • All Implemented Interfaces:
    EventListener, ServletContextListener

    public abstract class GuiceServletContextListener
    extends Object
    implements ServletContextListener
    As of Guice 2.0 you can still use (your subclasses of) GuiceServletContextListener class as a logical place to create and configure your injector. This will ensure the injector is created when the web application is deployed.
    Since:
    2.0