atg.service.webappregistry
Class StaticWebAppRegistry
java.lang.Object
atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.service.webappregistry.WebAppRegistry
atg.service.webappregistry.StaticWebAppRegistry
- All Implemented Interfaces:
- NameContextBindingListener, NameContextElement, NameResolver, AdminableService, 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 interface atg.nucleus.logging.TraceApplicationLogging |
DEFAULT_LOG_TRACE_STATUS |
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, reResolveThis, 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 |
CLASS_VERSION
public static java.lang.String CLASS_VERSION
- Class version string
StaticWebAppRegistry
public StaticWebAppRegistry()
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