Package org.forgerock.guice.core
Class GuiceInitialisationFilter
- java.lang.Object
-
- org.forgerock.guice.core.GuiceInitialisationFilter
-
- All Implemented Interfaces:
EventListener,javax.servlet.ServletContextListener
public final class GuiceInitialisationFilter extends Object implements javax.servlet.ServletContextListener
Servlet Context Listener to start the Guice initialisation eagerly when the Container starts up, instead of lazily waiting for the first request to kick-start the initialisation.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description GuiceInitialisationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)Not implemented to do anything.voidcontextInitialized(javax.servlet.ServletContextEvent servletContextEvent)Tries to get the Guice Injector instance from the InjectorHolder, therefore kick-starting the Guice initialisation.
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
Tries to get the Guice Injector instance from the InjectorHolder, therefore kick-starting the Guice initialisation.- Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener- Parameters:
servletContextEvent-
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
Not implemented to do anything.- Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener- Parameters:
servletContextEvent-
-
-