|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.nucleus.GenericContext atg.nucleus.Nucleus
public class Nucleus
A Nucleus serves two purposes: it is the root of a NameContext hierarchy, and it implements the policies for resolving names in the hierarchy.
Because a Nucleus is the root of the naming hierarchy, the Nucleus has no enclosing NameContext, its name is null, and its absolute name is "/".
When a Nucleus is constructed, it must be passed the configuration path. From there, the Nucleus will find its own configuration, including the property "initialServiceName". This initial service name is then resolved, which causes the rest of the services to be started.
Nested Class Summary | |
---|---|
class |
Nucleus.ValidationRunner
|
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
boolean |
mAllowReloadableComponents
|
java.lang.String |
mLastValidationFailureReason
|
static int |
RESTART_STATUS
|
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 | |
---|---|
Nucleus(java.lang.String pConfigPath)
Constructs a new Nucleus. |
|
Nucleus(java.lang.String pConfigPath,
java.lang.String pRelativePathPrefix,
LogListener pListener)
Constructs a new Nucleus. |
Method Summary | |
---|---|
void |
addCachedResolveTime(long pTime)
|
void |
addComponentListener(atg.nucleus.ComponentListener l)
add a ComponentListener -- delegated to ComponentRegistry which monitors component activations/deactivations. |
void |
addConfigurationListener(atg.nucleus.ConfigurationListener l)
add a ConfigurationListener |
void |
addPostStartupAction(atg.nucleus.PostStartupAction pPostStartupAction)
Add a start-up action to be performed after startup. |
void |
addUnCachedResolveTime(long pTime)
|
protected javax.servlet.Servlet |
createAdminServlet()
Creates and returns a new Servlet that will administer this service. |
protected MultipleConfigurationFinder |
createConfigurationFinder()
Creates and returns the MultipleConfigurationFinder that will be used to find configurations. |
void |
destroy()
Called when the servlet is to be destroyed |
static boolean |
displayLicense(Nucleus pNucleus)
Displays the license in an AWT frame, returns true if accepted, false if not. |
protected javax.servlet.Servlet |
fetchNextServlet()
|
void |
fireConfigurationDeleted(atg.nucleus.ConfigurationEvent evt)
fire a ConfigurationEvent deletion |
void |
fireConfigurationUpdated(atg.nucleus.ConfigurationEvent evt)
fire a ConfigurationEvent update |
protected java.lang.String |
formatServiceName(java.lang.String pServiceName,
javax.servlet.http.HttpServletRequest pRequest)
|
java.lang.String |
getAbsoluteElementName(NameContextElement pElement,
java.lang.String pName)
Returns what would be the absolute name of the specified element if it were contained by the specified element. |
java.lang.String |
getAbsoluteName(NameContextElement pElement)
Returns the absolute name of the specified NameContextElement. |
java.lang.String |
getAdminServerPrefix()
|
atg.nucleus.AllowedClasses |
getAllowedClasses()
The object that determines which classes may or may not be used in Nucleus. |
java.lang.String[] |
getAllowedClassNames()
|
byte[] |
getAllowedClassNamesSignature()
|
boolean |
getAllowReloadableComponents()
|
java.lang.String[] |
getApplicationNames()
|
java.lang.String[] |
getApplicationURLs()
|
BeanConfigurator |
getBeanConfigurator()
Returns the BeanConfigurator that should be used to configure a bean from Properties. |
boolean |
getCheckFileNameCase()
Whether or not we check the case of property file names against the canonical case used by the OS. |
boolean |
getCheckForSerFiles()
Whether or not we check for .ser files when instantiating beans. |
static java.lang.ClassLoader |
getClassLoader()
Returns the global class loader for all Nuclei. |
atg.nucleus.ComponentLockManager |
getComponentLockManager()
Get the component lock manager. |
java.io.File[] |
getConfigPath()
|
java.lang.String |
getConfigPath(java.lang.String pServerName)
Returns the config path for a specified server name |
java.lang.String[] |
getConfigPathNames()
The current configpath, separated into individual config path entries. |
atg.nucleus.ConfigurationCacheEntry |
getConfigurationCacheEntry(java.lang.String pConfigName)
Gets the cached Configuration object |
atg.nucleus.ConfigurationCacheEntry |
getConfigurationCacheEntry(java.lang.String pConfigName,
boolean pForceRefresh)
Gets the cached Configuration object |
long |
getConfigurationCheckMilliseconds()
|
java.lang.String |
getConfigurationCompileCommand()
Returns the command used to compile java configurations |
atg.nucleus.ConfigurationFileSystems |
getConfigurationFileSystems()
Return the ConfigurationFileSystems object for this Nucleus |
ConfigurationFinder |
getConfigurationFinder()
Returns the ConfigurationFinder that should be used to obtain the Configuration for a given configuration name. |
atg.nucleus.ConfigurationListener[] |
getConfigurationListeners()
Returns the list of configuration listeners as an array property. |
java.util.Dictionary |
getConfigurations(java.lang.String pName)
Return a dictionary of Configurations that exist within some potential NameContext. |
java.util.Dictionary |
getConfigurations(java.lang.String pName,
boolean pForceRefresh)
Return a dictionary of Configurations that exist within some potential NameContext. |
atg.nucleus.ConfigurationUpdater |
getConfigurationUpdater(java.lang.String pFileSystemName)
Returns the ConfigurationUpdater that should be used to update a ConfigurationState in the named file system. |
boolean |
getCreateSourceTemplates()
|
atg.nucleus.ConfigCreationFilter |
getCreationFilter()
Set the creation filter used, if any. |
atg.nucleus.ConfigurationUpdater |
getDefaultConfigurationUpdater(java.lang.String pFileSystemName)
Returns a ConfigurationUpdater that will update a component in the default file system for updates, or a given file system, whichever is the more specific. |
java.lang.String |
getDefaultLanguage()
|
java.util.Locale |
getDefaultLocale()
Returns the server's locale. |
java.lang.String |
getDefaultRegion()
|
int |
getDefaultStyleIndex()
|
boolean |
getEnableLinks()
|
java.util.Properties |
getEnvironment()
|
atg.nucleus.SoftSelfCleaningCache |
getGlobalComponentCache()
|
static Nucleus |
getGlobalNucleus()
Returns a reference to the global Nucleus for the current web application. |
java.lang.String |
getInitialServiceName()
Returns the name of the initial service to start |
JavaConfigurationClassLoaders |
getJavaConfigurationClassLoaders()
Returns the object used to obtain class loaders for configuration directories. |
static java.lang.Throwable |
getLicenseFailureException()
|
boolean |
getLogResourceNames()
|
atg.nucleus.dms.DASMessageSource |
getMessageSource()
|
atg.naming.NameUnresolver |
getNameUnresolver()
Returns the NameUnresolver associated with this Nucleus' global scope. |
java.lang.String |
getNextServlet()
|
static atg.nucleus.registry.NucleusRegistry |
getNucleusRegistry()
Returns the Nucleus registry used to hold per web app nuclei. |
boolean |
getOldParamBehavior()
|
PropertyValueFormatters |
getPropertyValueFormatters()
Returns the table mapping property class to property value formatter |
int |
getReferenceCount()
|
boolean |
getRegisterRequestComponents()
Will the Nucleus NameUnresolver register request scoped components? |
boolean |
getRegisterSessionComponents()
Will the Nucleus NameUnresolver register session scoped components? |
java.lang.String |
getRelativePathPrefix()
|
atg.nucleus.ComponentSecurityDomain |
getSecurityDomain()
Returns the component security domain used by Nucleus. |
boolean |
getSendD4StyleEvents()
|
javax.servlet.ServletConfig |
getServletConfig()
Returns the configuration for this Servlet |
javax.servlet.ServletContext |
getServletContext()
Returns the context for this servlet (if any) |
java.lang.String |
getServletInfo()
Returns the information string for this servlet |
boolean |
getShellRestart()
Does this nucleus support the restart operation? (i.e. |
long |
getStartTime()
Time in millis at which this nucleus was created. |
static Nucleus |
getSystemNucleus()
|
boolean |
getUseJavaConfigurationFinder()
Whether or not we use the JavaConfigurationFinder to check for .java or .class files which will, when compiled and instantiated, serve as a component instance. |
UserAuthority |
getUserAuthority()
Returns the user authority used for ACL resolution in Nucleus. |
boolean |
getWarningAboutImproperScopeAccess()
Gets the flag indicating whether the warning is wanted. |
void |
init(javax.servlet.ServletConfig pServletConfig)
Initializes this Servlet with the specified configuration |
protected void |
initCreationFilter()
Instantiates a new creation filter from the atg.nucleus.Nucleus.creationFilterClass property. |
boolean |
isCachingGlobalComponents()
Returns true if this Nucleus is caching global components. |
boolean |
isDebugComponentLocking()
Whether to attempt to debug component locking. |
boolean |
isFilteredComponent(java.lang.String pName)
Whether or not the specified component name was previously filtered. |
boolean |
isFirstTime()
|
boolean |
isGCAfterStartup()
Returns the flag indicating if Nucleus should perform a GC after starting up. |
static boolean |
isSingleNucleus()
Returns true if there is only a single nucleus in the JVM. |
boolean |
isStopping()
|
boolean |
isWarningAboutImproperScopeAccess()
Gets the flag indicating whether the warning is wanted. |
static java.lang.Class |
loadClass(java.lang.String pClassName)
Load a class using Nucleus' own class loader. |
static void |
main(java.lang.String[] pArgs)
Runs the Nucleus |
void |
makeNewClassLoader()
Instantiates a new development class loader and sets it as the global class loader for Nucleus, if a class path has been specified for it. |
static java.lang.String[] |
parseNucleusClassPath()
Returns an array of strings representing the parsed Nucleus class path. |
protected void |
performPostStartupActions()
Perform any post start-up actions previously added. |
protected void |
performPostStartupActions(atg.nucleus.PostStartupAction[] pStartupActions)
Perform the specified startup actions. |
void |
registerValidateableService(Validateable pService)
Registers the specified service with the list of services to be validated periodically. |
void |
removeComponentListener(atg.nucleus.ComponentListener l)
remove a ComponentListener |
void |
removeConfigurationListener(atg.nucleus.ConfigurationListener l)
remove a ConfigurationListener |
void |
removeLiveComponent(java.lang.Object pComponent)
Remove a live component from the Nucleus, stopping it as cleanly as possible and removing it from its parent context. |
void |
reportCachePerformance()
|
java.lang.Object |
resolveName(ComponentName pName,
NameContext pNameContext,
boolean pCreate)
Resolves the specified name in the specified context. |
java.lang.Object |
resolveName(java.lang.String pName,
NameContext pNameContext,
boolean pCreate)
Resolves the specified name in the specified context. |
void |
service(javax.servlet.http.HttpServletRequest pRequest,
javax.servlet.http.HttpServletResponse pResponse)
Handles http requests |
void |
service(javax.servlet.ServletRequest pRequest,
javax.servlet.ServletResponse pResponse)
Handles requests |
void |
setAdminServerPrefix(java.lang.String pAdminServerPrefix)
Sets the property AdminServerPrefix. |
void |
setAllowedClassNames(java.lang.String[] pAllowedClassNames)
The list of class names allowed to be used as Nucleus Services. |
void |
setAllowedClassNamesSignature(byte[] pAllowedClassNamesSignature)
|
void |
setAllowReloadableComponents(boolean pAllow)
Configures if Nucleus will respect the $reloadable attribute in .properties files. |
void |
setApplicationNames(java.lang.String[] pApplicationNames)
|
void |
setApplicationURLs(java.lang.String[] pApplicationURLs)
|
void |
setCacheGlobalComponents(boolean pCache)
Sets if the Nucleus is caching global components |
void |
setCheckFileNameCase(boolean pCheckCase)
Whether or not we check the case of property file names against the canonical case used by the OS. |
void |
setCheckForSerFiles(boolean pCheckForSerFiles)
|
static void |
setClassLoader(java.lang.ClassLoader pClassLoader)
Sets the global class loader for this nucleus. |
void |
setComponentLockManager(atg.nucleus.ComponentLockManager pComponentLockManager)
Set the component lock manager. |
void |
setConfigPath(java.io.File[] pConfigPath)
The current configpath as configured by nucleus. |
void |
setConfigurationCheckMilliseconds(long pConfigurationCheckMilliseconds)
|
void |
setConfigurationCompileCommand(java.lang.String pConfigurationCompileCommand)
Sets the command used to compile java configurations |
void |
setConfigurationListeners(atg.nucleus.ConfigurationListener[] pConfigurationListeners)
Set the list of configuration listeners as an array property. |
void |
setCreateSourceTemplates(boolean pCreateSourceTemplates)
|
void |
setCreationFilter(atg.nucleus.ConfigCreationFilter pCreationFilter)
Get the creation filter used, if any. |
void |
setDebugComponentLocking(boolean pDebugComponentLocking)
Whether to attempt to debug component locking. |
void |
setDefaultLanguage(java.lang.String pDefaultLanguage)
Sets the property DefaultLanguage. |
void |
setDefaultRegion(java.lang.String pDefaultRegion)
Sets the property DefaultRegion. |
void |
setDefaultStyleIndex(int pDefaultStyleIndex)
Sets the property LicenseFailureException. |
void |
setDocumentRoot(java.io.File pPath)
Override the implementation of the setDocumentRoot to update the doc root for the docroot config path entry |
void |
setEnableLinks(boolean pEnableLinks)
Sets the property EnableLinks. |
void |
setEnvironment(java.util.Properties pEnvironment)
The classpath entries that are configured in the Nucleus.properties file. |
void |
setGCAfterStartup(boolean pGCAfterStartup)
Sets the flag indicating if Nucleus should perform a GC after starting up. |
void |
setInitialServiceName(java.lang.String pInitialServiceName)
Sets the name of the initial service |
static void |
setLicenseFailureException(java.lang.Throwable pLicenseFailureException)
Sets the property LicenseFailureException. |
void |
setLogResourceNames(boolean pLogResourceNames)
Sets the property LogResourceNames. |
void |
setMessageSource(atg.nucleus.dms.DASMessageSource pMessageSource)
|
void |
setNextServlet(java.lang.String pNextServlet)
The next servlet to render if we don't find a component for the specified URL. |
void |
setOldParamBehavior(boolean pOldParamBehavior)
|
void |
setReferenceCount(int pReferenceCount)
Sets the property ReferenceCount. |
void |
setRegisterNucleusShutdownHook(boolean pRegisterNucleusShutdownHook)
Sets the flag indicating if Nucleus should register a shutdown during startup |
void |
setRegisterRequestComponents(boolean pRegisterRequestComponents)
Will the Nucleus NameUnresolver register request scoped components? |
void |
setRegisterSessionComponents(boolean pRegisterSessionComponents)
Will the Nucleus NameUnresolver register session scoped components? |
void |
setRelativePathPrefix(java.lang.String pRelativePathPrefix)
The path name prepended onto relative paths that do not have an explicit "./" in front of them. |
void |
setSendD4StyleEvents(boolean pSendD4StyleEvents)
|
void |
setUseJavaConfigurationFinder(boolean pUseFinder)
Whether or not we use the JavaConfigurationFinder. |
void |
setWarningAboutImproperScopeAccess(boolean pWarn)
Sets the flag which enables or disables the warning. |
Nucleus |
spawnNucleus(java.lang.ClassLoader pClassLoader,
java.lang.String pConfig,
java.lang.String pPathPrefix)
Spawns a new Nucleus using the given class loader and the given configpath |
static Nucleus |
startNucleus(java.lang.String[] pArgs)
Creates a Nucleus initialized from a set of command line args, then returns it. |
static Nucleus |
startNucleusCheckLicense(java.lang.String[] pArgs)
Creates a Nucleus initialized from a set of command line args, then returns it. |
void |
stopService()
Stops the service. |
void |
waitForInitialization()
Returns after this Nucleus has completely initialized itself. |
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, toString, wait, wait, wait |
Methods inherited from interface atg.naming.NameContextElement |
---|
getName, getNameContext |
Methods inherited from interface atg.naming.NameContextBindingListener |
---|
nameContextElementBound, nameContextElementUnbound |
Methods inherited from interface atg.naming.NameContextElement |
---|
getName, getNameContext |
Methods inherited from interface atg.naming.NameContextBindingListener |
---|
nameContextElementBound, nameContextElementUnbound |
Methods inherited from interface atg.naming.NameContextElement |
---|
getName, getNameContext |
Methods inherited from interface atg.naming.NameContextBindingListener |
---|
nameContextElementBound, nameContextElementUnbound |
Field Detail |
---|
public static final java.lang.String CLASS_VERSION
public static final int RESTART_STATUS
public boolean mAllowReloadableComponents
public java.lang.String mLastValidationFailureReason
Constructor Detail |
---|
public Nucleus(java.lang.String pConfigPath, java.lang.String pRelativePathPrefix, LogListener pListener)
pConfigPath
- the configuration path that will be used to
find configuration filespRelativePathPrefix
- prepend this path prefix onto relative
path names in .properties files (can be null for no prefix)pListener
- a listener to use for receiving log eventspublic Nucleus(java.lang.String pConfigPath)
pConfigPath
- the configuration path that will be used to
find configuration filesMethod Detail |
---|
public boolean isCachingGlobalComponents()
public atg.nucleus.SoftSelfCleaningCache getGlobalComponentCache()
public boolean getAllowReloadableComponents()
public void setAllowReloadableComponents(boolean pAllow)
public void setCacheGlobalComponents(boolean pCache)
pCache
- Flag controlling cache use. True means do cache, false means
do not cache.public long getStartTime()
public atg.nucleus.dms.DASMessageSource getMessageSource()
public void setMessageSource(atg.nucleus.dms.DASMessageSource pMessageSource)
public boolean getSendD4StyleEvents()
public void setSendD4StyleEvents(boolean pSendD4StyleEvents)
public boolean getOldParamBehavior()
public void setOldParamBehavior(boolean pOldParamBehavior)
public void setWarningAboutImproperScopeAccess(boolean pWarn)
boolean
- true if we want the warning, false otherwisepublic boolean getWarningAboutImproperScopeAccess()
public boolean isWarningAboutImproperScopeAccess()
public void setLogResourceNames(boolean pLogResourceNames)
pLogResourceNames
- new value to setpublic boolean getLogResourceNames()
public void setDefaultRegion(java.lang.String pDefaultRegion)
pDefaultRegion
- new value to setpublic java.lang.String getDefaultRegion()
public void setDefaultLanguage(java.lang.String pDefaultLanguage)
pDefaultLanguage
- new value to setpublic java.lang.String getDefaultLanguage()
public java.util.Locale getDefaultLocale()
public void setAdminServerPrefix(java.lang.String pAdminServerPrefix)
pAdminServerPrefix
- new value to setpublic java.lang.String getAdminServerPrefix()
public static void setLicenseFailureException(java.lang.Throwable pLicenseFailureException)
public static java.lang.Throwable getLicenseFailureException()
public void setDefaultStyleIndex(int pDefaultStyleIndex)
public int getDefaultStyleIndex()
public static Nucleus getGlobalNucleus()
public static Nucleus getSystemNucleus()
public void setEnableLinks(boolean pEnableLinks)
public boolean getEnableLinks()
public static boolean displayLicense(Nucleus pNucleus)
public atg.nucleus.ConfigurationUpdater getConfigurationUpdater(java.lang.String pFileSystemName)
pFileSystemName
- the name of the file system in which updates
are to take place. If null, a ConfigurationUpdater is returned
that works with all defined file systems, targeting the last.public atg.nucleus.ConfigurationUpdater getDefaultConfigurationUpdater(java.lang.String pFileSystemName)
pFileSystemName
- the name of a "preferred" file system
in which updates are to take place.public void removeLiveComponent(java.lang.Object pComponent)
public java.util.Dictionary getConfigurations(java.lang.String pName)
public java.util.Dictionary getConfigurations(java.lang.String pName, boolean pForceRefresh)
public void setDocumentRoot(java.io.File pPath)
setDocumentRoot
in class GenericContext
public ConfigurationFinder getConfigurationFinder()
public atg.nucleus.ConfigurationFileSystems getConfigurationFileSystems()
public BeanConfigurator getBeanConfigurator()
public PropertyValueFormatters getPropertyValueFormatters()
public atg.nucleus.ConfigurationCacheEntry getConfigurationCacheEntry(java.lang.String pConfigName)
public atg.nucleus.ConfigurationCacheEntry getConfigurationCacheEntry(java.lang.String pConfigName, boolean pForceRefresh)
protected MultipleConfigurationFinder createConfigurationFinder()
pFileSystems
- the set of VirtualFileSystems that will be used to
find configuration filespublic void waitForInitialization()
public boolean getCreateSourceTemplates()
public void setCreateSourceTemplates(boolean pCreateSourceTemplates)
public atg.naming.NameUnresolver getNameUnresolver()
public void addComponentListener(atg.nucleus.ComponentListener l)
public void removeComponentListener(atg.nucleus.ComponentListener l)
public atg.nucleus.ConfigurationListener[] getConfigurationListeners()
public void setConfigurationListeners(atg.nucleus.ConfigurationListener[] pConfigurationListeners)
public void addConfigurationListener(atg.nucleus.ConfigurationListener l)
public void removeConfigurationListener(atg.nucleus.ConfigurationListener l)
public void fireConfigurationUpdated(atg.nucleus.ConfigurationEvent evt)
public void fireConfigurationDeleted(atg.nucleus.ConfigurationEvent evt)
public java.lang.String getInitialServiceName()
public void setInitialServiceName(java.lang.String pInitialServiceName)
public java.lang.String getConfigurationCompileCommand()
public void setConfigurationCompileCommand(java.lang.String pConfigurationCompileCommand)
public boolean isGCAfterStartup()
public void setRegisterNucleusShutdownHook(boolean pRegisterNucleusShutdownHook)
public void setGCAfterStartup(boolean pGCAfterStartup)
public long getConfigurationCheckMilliseconds()
public void setConfigurationCheckMilliseconds(long pConfigurationCheckMilliseconds)
public boolean getCheckFileNameCase()
public void setCheckFileNameCase(boolean pCheckCase)
public boolean getUseJavaConfigurationFinder()
public void setUseJavaConfigurationFinder(boolean pUseFinder)
public boolean getCheckForSerFiles()
public void setCheckForSerFiles(boolean pCheckForSerFiles)
public boolean getRegisterSessionComponents()
public void setRegisterSessionComponents(boolean pRegisterSessionComponents)
public boolean getRegisterRequestComponents()
public void setRegisterRequestComponents(boolean pRegisterRequestComponents)
public JavaConfigurationClassLoaders getJavaConfigurationClassLoaders()
public void setEnvironment(java.util.Properties pEnvironment)
public java.util.Properties getEnvironment()
public void setRelativePathPrefix(java.lang.String pRelativePathPrefix)
public java.lang.String getRelativePathPrefix()
public void setConfigPath(java.io.File[] pConfigPath)
Note that since the configpath can also contain entries which do not refer to files, but rather to file system components, this configpath is partial. Use the configPathNames property instead to get all the config path entries.
public java.io.File[] getConfigPath()
public java.lang.String[] getConfigPathNames()
public void setNextServlet(java.lang.String pNextServlet)
public java.lang.String getNextServlet()
protected javax.servlet.Servlet fetchNextServlet()
public void setApplicationURLs(java.lang.String[] pApplicationURLs)
public java.lang.String[] getApplicationURLs()
public void setApplicationNames(java.lang.String[] pApplicationNames)
public java.lang.String[] getApplicationNames()
public void setAllowedClassNames(java.lang.String[] pAllowedClassNames)
public java.lang.String[] getAllowedClassNames()
public void setAllowedClassNamesSignature(byte[] pAllowedClassNamesSignature)
public byte[] getAllowedClassNamesSignature()
public atg.nucleus.AllowedClasses getAllowedClasses()
public java.lang.String getAbsoluteName(NameContextElement pElement)
public java.lang.String getAbsoluteElementName(NameContextElement pElement, java.lang.String pName)
public java.lang.Object resolveName(ComponentName pName, NameContext pNameContext, boolean pCreate)
pName
- the name to be resolvedpNameContext
- the NameContext to which the name is relativepCreate
- flag indicating whether Nucleus should attempt to
create the object if it does not already exist in the naming
hierarchy.
public java.lang.Object resolveName(java.lang.String pName, NameContext pNameContext, boolean pCreate)
pName
- the name to be resolvedpNameContext
- the NameContext to which the name is relativepCreate
- flag indicating whether Nucleus should attempt to
create the object if it does not already exist in the naming
hierarchy.
public final void registerValidateableService(Validateable pService)
public void init(javax.servlet.ServletConfig pServletConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
javax.servlet.ServletException
- if an error occurred while initializing
the Servletpublic javax.servlet.ServletConfig getServletConfig()
getServletConfig
in interface javax.servlet.Servlet
public javax.servlet.ServletContext getServletContext()
public java.lang.String getServletInfo()
getServletInfo
in interface javax.servlet.Servlet
public void destroy()
destroy
in interface javax.servlet.Servlet
public void service(javax.servlet.ServletRequest pRequest, javax.servlet.ServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
service
in interface javax.servlet.Servlet
javax.servlet.ServletException
- if an error occurred while processing
the servlet request
java.io.IOException
- if an error occurred while reading or writing
the servlet requestprotected java.lang.String formatServiceName(java.lang.String pServiceName, javax.servlet.http.HttpServletRequest pRequest)
public void service(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
- if an error occurred while processing
the servlet request
java.io.IOException
- if an error occurred while reading or writing
the servlet requestprotected javax.servlet.Servlet createAdminServlet()
createAdminServlet
in class GenericService
public static boolean isSingleNucleus()
public java.lang.String getConfigPath(java.lang.String pServerName)
public boolean getShellRestart()
public boolean isStopping()
public void setReferenceCount(int pReferenceCount)
pReferenceCount
- new value to setpublic int getReferenceCount()
public void setCreationFilter(atg.nucleus.ConfigCreationFilter pCreationFilter)
public atg.nucleus.ConfigCreationFilter getCreationFilter()
public void setDebugComponentLocking(boolean pDebugComponentLocking)
public boolean isDebugComponentLocking()
public void setComponentLockManager(atg.nucleus.ComponentLockManager pComponentLockManager)
public atg.nucleus.ComponentLockManager getComponentLockManager()
public boolean isFilteredComponent(java.lang.String pName)
pName
- the name (nucleus path) of the
component which may have been previously filtered.public void stopService() throws ServiceException
stopService
in interface ServiceListener
stopService
in class GenericService
ServiceException
- if an error occurred while attempting
to stop the service.public UserAuthority getUserAuthority()
public atg.nucleus.ComponentSecurityDomain getSecurityDomain()
public static java.lang.ClassLoader getClassLoader()
public static void setClassLoader(java.lang.ClassLoader pClassLoader)
public static java.lang.String[] parseNucleusClassPath()
public void makeNewClassLoader()
protected void initCreationFilter()
public static java.lang.Class loadClass(java.lang.String pClassName) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public Nucleus spawnNucleus(java.lang.ClassLoader pClassLoader, java.lang.String pConfig, java.lang.String pPathPrefix)
pClassLoader
- the classloader to be used by this NucleuspConfig
- the config path for this nucleuspPathPrefix
- the prefix applied to relative path names
that do not start with "./". Allows services to define files that
should be run on a per-instance basis.public static atg.nucleus.registry.NucleusRegistry getNucleusRegistry()
public static void main(java.lang.String[] pArgs)
public static Nucleus startNucleus(java.lang.String[] pArgs)
public static Nucleus startNucleusCheckLicense(java.lang.String[] pArgs)
public boolean isFirstTime()
public void addCachedResolveTime(long pTime)
public void addUnCachedResolveTime(long pTime)
public void reportCachePerformance()
public void addPostStartupAction(atg.nucleus.PostStartupAction pPostStartupAction)
pPostStartupAction
- the post start-up action add to the list
of actions to be performed at the end of startup.protected void performPostStartupActions()
protected void performPostStartupActions(atg.nucleus.PostStartupAction[] pStartupActions)
pStartupActions
- the startup actions to invoke.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |