public abstract class

GuiceServletContextListener

extends Object
java.lang.Object
   ↳ com.google.inject.servlet.GuiceServletContextListener

Class Overview

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.

Summary

Public Constructors
GuiceServletContextListener()
Public Methods
void contextDestroyed(ServletContextEvent servletContextEvent)
void contextInitialized(ServletContextEvent servletContextEvent)
Protected Methods
abstract Injector getInjector()
Override this method to create (or otherwise obtain a reference to) your injector.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GuiceServletContextListener ()

Public Methods

public void contextDestroyed (ServletContextEvent servletContextEvent)

public void contextInitialized (ServletContextEvent servletContextEvent)

Protected Methods

protected abstract Injector getInjector ()

Override this method to create (or otherwise obtain a reference to) your injector.