atg.service.webappregistry
Class StaticWebAppRegistry

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.StaticWebAppRegistry
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

public class StaticWebAppRegistry
extends WebAppRegistry

StaticWebAppRegistry is an implementation of WebAppRegistry. This class read a list of WebApp components or a Map of display-name=context-root mappings to configure the registry of deployed WebApps. There needs to be a property file for each PreconfiguredWebApp. If the contextRootMap is used, then you just need to set the property inside the property file. Example of property file settings ------------------------------------------------------------- contextRootMap=\ Quincy Funds J2EE DAF Demo=QuincyFunds,\ MotorpriseJSP=Motorprise Or for preConfiguredWebApps: preConfiguredWebApps=\ /atg/registry/webappregistry/QuincyFundsWebApp,\ /atg/registry/webappregistry/MotorpriseWebApp Example of WebApp property file: QuincyFundsWebApp.properties ------------------------------------------------------------- $class=atg.service.webappregistry.WebApp properties=\ display-name=QuincyFunds,\ appState=started,\ context-root=QuincyFunds,\ web-uri=web_app,\ path=d:/work/5.6/Dynamo/DSSJ2EEDemo/j2ee-apps/QuincyFunds -------------------------------------------------------------

See Also:
WebApp WebAppRegistry MergedWebAppRegistry 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
StaticWebAppRegistry()
           
 
Method Summary
 java.util.Properties getContextRootMap()
          Gets the mContextRootMap property
 WebApp[] getPreConfiguredWebApps()
           
 java.util.Map getWebApps()
          Get the Map of currently deployed web applications
 void setContextRootMap(java.util.Properties pProperties)
          Sets the mContextRootMap property In prop file it should look like: contextRootMap=\ QuincyFunds J2EE Demo=QuincyFunds,\ MotorpriseJSP=Motorprise
 void setPreConfiguredWebApps(WebApp[] pWebApps)
           
 
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, 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

StaticWebAppRegistry

public StaticWebAppRegistry()
Method Detail

setContextRootMap

public void setContextRootMap(java.util.Properties pProperties)
Sets the mContextRootMap property In prop file it should look like: contextRootMap=\ QuincyFunds J2EE Demo=QuincyFunds,\ MotorpriseJSP=Motorprise


getContextRootMap

public java.util.Properties getContextRootMap()
Gets the mContextRootMap property


getPreConfiguredWebApps

public WebApp[] getPreConfiguredWebApps()

setPreConfiguredWebApps

public void setPreConfiguredWebApps(WebApp[] pWebApps)

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