public class GuiceServletContextListener
extends com.google.inject.servlet.GuiceServletContextListener
<context-param> <param-name>guiceModuleClassName</param-name> <param-value>org.killbill.commons.skeleton.listeners.GuiceServletContextListener</param-value> </context-param>
| Modifier and Type | Field and Description |
|---|---|
protected Iterable<? extends com.google.inject.Module> |
guiceModules |
| Constructor and Description |
|---|
GuiceServletContextListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextInitialized(javax.servlet.ServletContextEvent event) |
protected com.google.inject.Injector |
getInjector()
Do *not* use this method to retrieve the injector.
|
com.google.inject.Injector |
injector(javax.servlet.ServletContextEvent event)
This method can be called by classes extending GuiceServletContextListener to retrieve
the actual injector.
|
protected Iterable<? extends com.google.inject.Module> guiceModules
public void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized in interface javax.servlet.ServletContextListenercontextInitialized in class com.google.inject.servlet.GuiceServletContextListenerprotected com.google.inject.Injector getInjector()
getInjector in class com.google.inject.servlet.GuiceServletContextListenerpublic com.google.inject.Injector injector(javax.servlet.ServletContextEvent event)
Copyright © 2010–2021. All rights reserved.