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:
jakarta.servlet.ServletContextListener
,EventListener
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 (mondain@gmail.com)
-
Field Summary
Modifier and TypeFieldDescriptionprivate ClientRegistry
private GlobalScope
private ServiceInvoker
private ScopeResolver
private MappingStrategy
static final org.slf4j.Logger
private DefaultListableBeanFactory
private static ArrayList<jakarta.servlet.ServletContext>
private Server
private static jakarta.servlet.ServletContext
Fields inherited from class org.springframework.web.context.ContextLoader
CONFIG_LOCATION_PARAM, CONTEXT_CLASS_PARAM, CONTEXT_ID_PARAM, CONTEXT_INITIALIZER_CLASSES_PARAM, GLOBAL_INITIALIZER_CLASSES_PARAM
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextDestroyed
(jakarta.servlet.ServletContextEvent sce) Clearing the in-memory configuration parameters, we will receive notification that the servlet context is about to be shut downvoid
contextInitialized
(jakarta.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
-
Field Details
-
logger
public static final org.slf4j.Logger logger -
registeredContexts
-
applicationContext
-
parentFactory
-
servletContext
private static jakarta.servlet.ServletContext servletContext -
clientRegistry
-
globalInvoker
-
globalStrategy
-
globalResolver
-
global
-
server
-
-
Constructor Details
-
WarLoaderServlet
public WarLoaderServlet()
-
-
Method Details
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent sce) Main entry point for the Red5 Server as a war- Specified by:
contextInitialized
in interfacejakarta.servlet.ServletContextListener
- Overrides:
contextInitialized
in classContextLoaderListener
-
registerSubContext
-
contextDestroyed
public void contextDestroyed(jakarta.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 interfacejakarta.servlet.ServletContextListener
- Overrides:
contextDestroyed
in classContextLoaderListener
-