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
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
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0)
|
final
void
|
wait(long arg0, int arg1)
|
|
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.