public class GuiceContextListener extends Object implements javax.servlet.ServletContextListener
| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.ServletContext |
context |
static com.google.inject.Injector |
guiceInjector |
static String |
INJECTOR_ATTRIBUTE |
protected boolean |
jmxInitialized |
protected List<com.google.inject.Module> |
modules |
static String |
MODULES_ATTRIBUTE |
| Constructor and Description |
|---|
GuiceContextListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent event) |
void |
contextInitialized(javax.servlet.ServletContextEvent event) |
protected void |
runInjection() |
public static final String INJECTOR_ATTRIBUTE
public static final String MODULES_ATTRIBUTE
protected boolean jmxInitialized
public static com.google.inject.Injector guiceInjector
protected List<com.google.inject.Module> modules
protected javax.servlet.ServletContext context
public void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized in interface javax.servlet.ServletContextListenerprotected void runInjection()
public void contextDestroyed(javax.servlet.ServletContextEvent event)
contextDestroyed in interface javax.servlet.ServletContextListenerCopyright © 2019 Nuxeo SA. All rights reserved.