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 ([email protected])
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ClientRegistryprivate GlobalScopeprivate ServiceInvokerprivate ScopeResolverprivate MappingStrategystatic final org.slf4j.Loggerprivate DefaultListableBeanFactoryprivate static ArrayList<jakarta.servlet.ServletContext>private Serverprivate static jakarta.servlet.ServletContextFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextDestroyed(jakarta.servlet.ServletContextEvent sce) Clearing the in-memory configuration parameters, we will receive notification that the servlet context is about to be shut downvoidcontextInitialized(jakarta.servlet.ServletContextEvent sce) Main entry point for the Red5 Server as a warvoidregisterSubContext(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:
contextInitializedin interfacejakarta.servlet.ServletContextListener- Overrides:
contextInitializedin 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:
contextDestroyedin interfacejakarta.servlet.ServletContextListener- Overrides:
contextDestroyedin classContextLoaderListener
-