|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.wcm.crt.CrtSystem
Provides access to the component runtime system.
Copyright (c) SAP AG 2001-2002
| Constructor Summary | |
CrtSystem()
|
|
| Method Summary | |
abstract void |
createComponentManager(java.lang.String clientID,
IConfigurationProvider configProvider,
IComponentListener listener,
java.lang.ClassLoader loader,
com.sap.tc.logging.Category category)
Creates a component manager for a new CRT client. |
abstract IComponentManager |
getComponentManager(java.lang.String clientID)
Returns a reference to the component manager for the specified client identifier, or null if the client does not exist. |
static CrtSystem |
getInstance()
Returns an instance of this class. |
abstract IComponent |
lookupComponentByUri(ComponentUri uri)
Returns the component instance for the specified URI or null
if the component does not exist. |
abstract boolean |
managerStartUpIsRunning(java.lang.String clientID)
Returns true if the manager startup is in progress, false otherwise. |
abstract void |
releaseComponent(IComponent component)
Releases the component. |
abstract void |
shutDownComponentManager(java.lang.String clientID)
This method can optionally be called to shutdown all components of a CRT client. |
abstract void |
startUpComponentManager(java.lang.String clientID)
This method can optionally be called after the creation of a new component manager. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CrtSystem()
| Method Detail |
public abstract IComponentManager getComponentManager(java.lang.String clientID)
null if the client does not exist.clientID - The identifier of a CRT client.null .
public abstract void createComponentManager(java.lang.String clientID,
IConfigurationProvider configProvider,
IComponentListener listener,
java.lang.ClassLoader loader,
com.sap.tc.logging.Category category)
throws CascadingException
clientID - An identifier for the client.configProvider - A configuration provider instancelistener - A component listener implementation, can be null
.loader - The class loader for the application.category - The logger category to use for all components, can be
null . The CRT will also use this logger to log all
exceptions that occure during configration and initialization of
components.CascadingException - If some arguments are invalid or the creation
of the manager fails.
public abstract IComponent lookupComponentByUri(ComponentUri uri)
throws ComponentException
null
if the component does not exist.uri - The component URI to look for.
The caller must subseqently call releaseComponent() when
it is finished using the component. This is optional for thread-safe
components.
null .ComponentException - If the component could not be instanciated.public abstract void releaseComponent(IComponent component)
IThreadSafe interface - it is optional for
thread-safe components.component - A reference to the component to release.public abstract void startUpComponentManager(java.lang.String clientID)
IAutoStartable interface these components will be started. If
no such components exist this method will do nothing. This method must be called only once. It must be called before any lookup methods are called.
clientID - The client IDpublic abstract void shutDownComponentManager(java.lang.String clientID)
clientID - The client IDpublic static CrtSystem getInstance()
public abstract boolean managerStartUpIsRunning(java.lang.String clientID)
clientID - The client ID.
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||