org.red5.server.war
Class RootContextLoaderServlet

java.lang.Object
  extended by org.springframework.web.context.ContextLoaderListener
      extended by org.red5.server.war.RootContextLoaderServlet
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener
Direct Known Subclasses:
SubContextLoaderServlet

public class RootContextLoaderServlet
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 (red5@osflash.org), Paul Gregoire (mondain@gmail.com)

Nested Class Summary
 class RootContextLoaderServlet.CheckScopeListTask
          Task to check the scope list periodically for new contexts
 
Field Summary
static org.slf4j.Logger logger
           
protected  Integer rmiPort
           
 
Constructor Summary
RootContextLoaderServlet()
           
 
Method Summary
 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
 void contextInitialized(javax.servlet.ServletContextEvent sce)
          Main entry point for the Red5 Server as a war
protected  void initRegistry(javax.servlet.ServletContext ctx)
           
 void registerSubContext(String webAppKey)
           
 
Methods inherited from class org.springframework.web.context.ContextLoaderListener
createContextLoader, getContextLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static org.slf4j.Logger logger

rmiPort

protected Integer rmiPort
Constructor Detail

RootContextLoaderServlet

public RootContextLoaderServlet()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent sce)
Main entry point for the Red5 Server as a war

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
Overrides:
contextInitialized in class org.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 interface javax.servlet.ServletContextListener
Overrides:
contextDestroyed in class org.springframework.web.context.ContextLoaderListener

initRegistry

protected void initRegistry(javax.servlet.ServletContext ctx)


Copyright © 2006-2007 the Red5 project.