Package org.red5.server.war
Class WarLoaderServlet
- java.lang.Object
-
- org.springframework.web.context.ContextLoader
-
- org.springframework.web.context.ContextLoaderListener
-
- org.red5.server.war.WarLoaderServlet
-
- All Implemented Interfaces:
EventListener
,javax.servlet.ServletContextListener
public class WarLoaderServlet extends org.springframework.web.context.ContextLoaderListener
Entry point from which the server config file is loaded while running within a J2EE application container. This listener should be registered after Log4jConfigListener in web.xml, if the latter is used.- Author:
- The Red5 Project, Paul Gregoire ([email protected])
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description WarLoaderServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextDestroyed(javax.servlet.ServletContextEvent sce)
Clearing the in-memory configuration parameters, we will receive notification that the servlet context is about to be shut downvoid
contextInitialized(javax.servlet.ServletContextEvent sce)
Main entry point for the Red5 Server as a warvoid
registerSubContext(String webAppKey)
-
Methods inherited from class org.springframework.web.context.ContextLoader
closeWebApplicationContext, configureAndRefreshWebApplicationContext, createWebApplicationContext, customizeContext, determineContextClass, determineContextInitializerClasses, getCurrentWebApplicationContext, initWebApplicationContext, loadParentContext, setContextInitializers
-
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
Main entry point for the Red5 Server as a war- Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
- Overrides:
contextInitialized
in classorg.springframework.web.context.ContextLoaderListener
-
registerSubContext
public void registerSubContext(String webAppKey)
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
Clearing the in-memory configuration parameters, we will receive notification that the servlet context is about to be shut down- Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
- Overrides:
contextDestroyed
in classorg.springframework.web.context.ContextLoaderListener
-
-