SAP NetWeaver '04

com.sapportals.wcm.crt
Class CrtSystem

[contained in: com.sap.netweaver.bc.crt.par - bc.crt_api.jar]
java.lang.Object
  |
  +--com.sapportals.wcm.crt.CrtSystem

public abstract class CrtSystem
extends java.lang.Object

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

CrtSystem

public CrtSystem()
Method Detail

getComponentManager

public 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.
Parameters:
clientID - The identifier of a CRT client.
Returns:
a reference to the component manager or null .

createComponentManager

public abstract void createComponentManager(java.lang.String clientID,
                                            IConfigurationProvider configProvider,
                                            IComponentListener listener,
                                            java.lang.ClassLoader loader,
                                            com.sap.tc.logging.Category category)
                                     throws CascadingException
Creates a component manager for a new CRT client.
Parameters:
clientID - An identifier for the client.
configProvider - A configuration provider instance
listener - 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.
Throws:
CascadingException - If some arguments are invalid or the creation of the manager fails.

lookupComponentByUri

public abstract IComponent lookupComponentByUri(ComponentUri uri)
                                         throws ComponentException
Returns the component instance for the specified URI or null if the component does not exist.
Parameters:
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.

Returns:
the component instance or null .
Throws:
ComponentException - If the component could not be instanciated.

releaseComponent

public abstract void releaseComponent(IComponent component)
Releases the component. This method should be called when the caller is finished using the component. It must be called for all components that do not implement the IThreadSafe interface - it is optional for thread-safe components.
Parameters:
component - A reference to the component to release.

startUpComponentManager

public abstract void startUpComponentManager(java.lang.String clientID)
This method can optionally be called after the creation of a new component manager. If the initial configuration contains components that implement the 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.

Parameters:
clientID - The client ID

shutDownComponentManager

public abstract void shutDownComponentManager(java.lang.String clientID)
This method can optionally be called to shutdown all components of a CRT client. The method must be called only once. It is not possible to restart a component manager after shutdown.
Parameters:
clientID - The client ID

getInstance

public static CrtSystem getInstance()
Returns an instance of this class.
Returns:
instance

managerStartUpIsRunning

public abstract boolean managerStartUpIsRunning(java.lang.String clientID)
Returns true if the manager startup is in progress, false otherwise.
Parameters:
clientID - The client ID.
Returns:
true if the manager startup is in progress, false otherwise.

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.