public abstract class GuiceServletContextListener extends Object implements javax.servlet.ServletContextListener
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.| Constructor and Description |
|---|
GuiceServletContextListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent) |
void |
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent) |
protected abstract Injector |
getInjector()
Override this method to create (or otherwise obtain a reference to) your injector.
|
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
contextInitialized in interface javax.servlet.ServletContextListenerpublic void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
contextDestroyed in interface javax.servlet.ServletContextListenerprotected abstract Injector getInjector()
Copyright © 2006–2018 Google, Inc.. All rights reserved.