atg.service.webappregistry
Class ServletContextListenerWebAppRegistry

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.service.webappregistry.WebAppRegistry
              extended by atg.service.webappregistry.ServletContextWebAppRegistry
                  extended by atg.service.webappregistry.ServletContextListenerWebAppRegistry
All Implemented Interfaces:
atg.naming.AbsoluteNameable, NameContextBindingListener, NameContextElement, atg.naming.NameContextParentable, NameResolver, AdminableService, atg.nucleus.Configured, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener, javax.servlet.ServletContextListener

public class ServletContextListenerWebAppRegistry
extends ServletContextWebAppRegistry
implements javax.servlet.ServletContextListener

This class recieves notifications about changes to the servlet context for the web apps that have registered this class as a listener. To recieve notifications configure the deployment descriptor for the web application as follows: atg.servlet.ServletContextListenerWebAppRegistry

See Also:
WebAppRegistry, WebAppScanner, WebAppStaticRegistry

Nested Class Summary
 
Nested classes/interfaces inherited from class atg.service.webappregistry.ServletContextWebAppRegistry
ServletContextWebAppRegistry.ServletContextWebAppRegistryListener
 
Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class atg.service.webappregistry.ServletContextWebAppRegistry
sResources
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
ServletContextListenerWebAppRegistry()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent sce)
          Notification that the servlet context is about to be shut down.
 void contextInitialized(javax.servlet.ServletContextEvent sce)
          Notification that the web application is ready to process requests.
 
Methods inherited from class atg.service.webappregistry.ServletContextWebAppRegistry
checkFingerPrintOfWebApp, createTaglibFingerPrint, doStartService, doStartupChecks, doStopService, getRealPath, getServletContextToClassLoader, getServletContextWepAppRegistryListeners, getWebApps, matchesExpected, register, unregister
 
Methods inherited from class atg.service.webappregistry.WebAppRegistry
addListener, createAdminServlet, getHiddenWebApps, getSiteHttpServerName, getSiteHttpServerPort, getUrl, getUrl, getWebAppByContextRoot, getWebAppByName, getWebAppByProperty, isHiddenWebApp, register, removeListener, removeWebApp, savePropertyFilesToDir, setHiddenWebApps, setSiteHttpServerName, setSiteHttpServerPort, toString, unregister
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

ServletContextListenerWebAppRegistry

public ServletContextListenerWebAppRegistry()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent sce)
Notification that the web application is ready to process requests.

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
Parameters:
sce - a ServletContextEvent value

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent sce)
Notification that the servlet context is about to be shut down.

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
Parameters:
sce - a ServletContextEvent value