|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A component manager manages all root components of a CRT client or all components within a container component. Components are identified by a key.
Copyright (c) SAP AG 2001-2002
| Nested Class Summary | |
static interface |
IComponentManager.IComponentInformation
Defines a container for a compontent's information. |
| Method Summary | |
boolean |
hasComponent(String key)
Returns true if the component with the specified key exists. |
String[] |
listComponentKeys()
Returns an array of the keys of all components contained in this manager. |
IComponent |
lookupComponent(String key)
Returns the component instance for the specified key or null
if the component was not found. |
IComponentManager.IComponentInformation |
lookupComponentInformation(String key)
Performs a lookup with the specified key and returns information about the component's current state. |
void |
releaseComponent(IComponent component)
Releases the component. |
| Method Detail |
public IComponent lookupComponent(String key)
throws ComponentException
null
if the component was not found. If the component was not started yet (state is NOT_INIT)
the manager will try to start it.
key - The component key to look for. Keys are case-sensitive.
The caller must subseqently call releaseComponent() when
it is finished using the component. This is optional for thread-safe
components.
ComponentException - If the component could not be instanciated.public boolean hasComponent(String key)
key - The component key to look for. Keys are case-sensitive.
public void releaseComponent(IComponent component)
IThreadSafe interface - it is optional for
thread-safe components.
component - A reference to the component to release.public String[] listComponentKeys()
public IComponentManager.IComponentInformation lookupComponentInformation(String key)
throws ComponentException
key - The component key to look for. Keys are case-sensitive.
ComponentException
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||