Class GuiceResteasyBootstrapServletContextListener

  • All Implemented Interfaces:
    EventListener, javax.servlet.ServletContextListener

    public class GuiceResteasyBootstrapServletContextListener
    extends ResteasyBootstrap
    implements javax.servlet.ServletContextListener
    • Constructor Detail

      • GuiceResteasyBootstrapServletContextListener

        public GuiceResteasyBootstrapServletContextListener()
    • Method Detail

      • contextInitialized

        public void contextInitialized​(javax.servlet.ServletContextEvent event)
        Specified by:
        contextInitialized in interface javax.servlet.ServletContextListener
        Overrides:
        contextInitialized in class ResteasyBootstrap
      • withInjector

        protected void withInjector​(com.google.inject.Injector injector)
        Override this method to interact with the Injector after it has been created. The default is no-op.
        Parameters:
        injector -
      • getStage

        protected com.google.inject.Stage getStage​(javax.servlet.ServletContext context)
        Override this method to set the Stage. By default it is taken from resteasy.guice.stage context param.
        Parameters:
        context -
        Returns:
        Guice Stage
      • getModules

        protected List<? extends com.google.inject.Module> getModules​(javax.servlet.ServletContext context)
        Override this method to instantiate your Modules yourself.
        Parameters:
        context -
        Returns:
      • contextDestroyed

        public void contextDestroyed​(javax.servlet.ServletContextEvent event)
        Specified by:
        contextDestroyed in interface javax.servlet.ServletContextListener
        Overrides:
        contextDestroyed in class ResteasyBootstrap