public class GuiceResteasyBootstrapServletContextListener extends ResteasyBootstrap implements javax.servlet.ServletContextListener
deployment
Constructor and Description |
---|
GuiceResteasyBootstrapServletContextListener() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent event) |
void |
contextInitialized(javax.servlet.ServletContextEvent event) |
protected List<? extends com.google.inject.Module> |
getModules(javax.servlet.ServletContext context)
Override this method to instantiate your
Module s yourself. |
protected com.google.inject.Stage |
getStage(javax.servlet.ServletContext context)
Override this method to set the Stage.
|
protected void |
withInjector(com.google.inject.Injector injector)
Override this method to interact with the
Injector after it has been created. |
public GuiceResteasyBootstrapServletContextListener()
public void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized
in interface javax.servlet.ServletContextListener
contextInitialized
in class ResteasyBootstrap
protected void withInjector(com.google.inject.Injector injector)
Injector
after it has been created. The default is no-op.injector
- protected com.google.inject.Stage getStage(javax.servlet.ServletContext context)
context
- protected List<? extends com.google.inject.Module> getModules(javax.servlet.ServletContext context)
Module
s yourself.context
- public void contextDestroyed(javax.servlet.ServletContextEvent event)
contextDestroyed
in interface javax.servlet.ServletContextListener
contextDestroyed
in class ResteasyBootstrap
Copyright © 2014. All Rights Reserved.