atg.service.webappregistry
Class MergedWebAppRegistry

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.MergedWebAppRegistry
All Implemented Interfaces:
NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, WebAppListener, java.util.EventListener

public class MergedWebAppRegistry
extends WebAppRegistry
implements WebAppListener

This is an implementation of WebAppRegistry. This implementation merges a set of WebAppRegitry components. Precedence goes up with position in the list. For instance, the property file would set the list with: webAppRegistries=\ /atg/dynamo/service/webappregistry/StaticWebAppRegistry,\ /atg/dynamo/service/webappregistry/ServletContextWebAppRegistry This means to use a StaticWebAppRegistry to read WebApp information from a propery file and a ServletContextWebAppRegistry to get WebApp information from the WebApps started at runtime (See NucleusServlet). This registry will merge the 2 with precedence going to ServletContextWebAppRegistry. This is needed if we do not have all the needed information at runtime. For example on some application servers, you can not get the real path or context-root. This can happen when the WebApp is in an ear file.

See Also:
WebApp WebAppRegistry NucleusServletWebAppRegistry ServletContextListenerWebAppRegistery

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
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
MergedWebAppRegistry()
           
 
Method Summary
 WebAppRegistry[] getWebAppRegistries()
          Get the value of WebAppRegistries.
 java.util.Map getWebApps()
          Get the Map of currently deployed web applications
 void receiveEvent(WebAppEvent pEvent)
          Called when a WebApp has been added.
 void setWebAppRegistries(WebAppRegistry[] v)
          Set the value of WebAppRegistries.
 
Methods inherited from class atg.service.webappregistry.WebAppRegistry
addListener, createAdminServlet, doStartService, doStopService, 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, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, 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

MergedWebAppRegistry

public MergedWebAppRegistry()
Method Detail

getWebAppRegistries

public WebAppRegistry[] getWebAppRegistries()
Get the value of WebAppRegistries.

Returns:
value of WebAppRegistries.

setWebAppRegistries

public void setWebAppRegistries(WebAppRegistry[] v)
Set the value of WebAppRegistries.

Parameters:
v - Value to assign to WebAppRegistries.

getWebApps

public java.util.Map getWebApps()
Description copied from class: WebAppRegistry
Get the Map of currently deployed web applications

Specified by:
getWebApps in class WebAppRegistry
Returns:
a Map of deployed WebApps

receiveEvent

public void receiveEvent(WebAppEvent pEvent)
Description copied from interface: WebAppListener
Called when a WebApp has been added.

Specified by:
receiveEvent in interface WebAppListener
Parameters:
pEvent - a WebAppEvent value