java.lang.Object | +--com.ibm.commerce.server.ComponentManager
The component manager is responsible for initialization of all components and for enabling and disabling components.
Field Summary | |
---|---|
protected
java.util.Hashtable |
componentTable |
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Constructor Summary | |
---|---|
ComponentManager() Constructor for RegistryManager. |
Method Summary | |
---|---|
void |
deleteComponent(java.lang.String aComponentName) Deletes a component given the name. |
void |
destroy() Refreshes cache of registry information of all the registry entries in the hashtable. |
void |
destroyComponent(java.lang.String aComponent) Destroys a component given the name. |
void |
disableComponent(java.lang.String aComponentName) Disables a component given the name. |
void |
enableComponent(java.lang.String aComponentName) Re-enables a component that has been disabled or a compoent that has never been enabled. |
ComponentConfiguration |
getComponent(java.lang.String aComponentName) Gets an instance of the component given the component name. |
int |
getComponentHashcode(java.lang.String aComponentName) Gets the hashcode of a component. |
boolean |
getComponentStatus(java.lang.String aComponentName) Return the status of a component given the component name |
int |
getSize() Gets the size of table. |
void |
initComponent(
ComponentDescriptor desc) Initalizes a component given a component descriptor. |
void |
initComponent(org.w3c.dom.Element node) Initalizes a component given a component node from the configuration file. |
void |
initComponent(java.lang.String aComponentName) Initalizes a component with a component given name. |
void |
initialize() Initializes the component manager |
java.util.Enumeration |
list() Lists all the components maintained by the component manager. |
static
ComponentManager |
singleton() Gets the singleton of the component manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected java.util.Hashtable componentTable
Constructor Detail |
---|
public ComponentManager()
Method Detail |
---|
public void deleteComponent(java.lang.String aComponentName) throws java.lang.Exception
aComponentName
- name of component to be deletedjava.lang.Exception
public void destroy()
public void destroyComponent(java.lang.String aComponent)
aComponent
- name of component to be
destroyed.public void disableComponent(java.lang.String aComponentName) throws java.lang.Exception
aComponentName
- name of component to be disabled.java.lang.Exception
public void enableComponent(java.lang.String aComponentName) throws java.lang.Exception
aComponentName
- name of the componentjava.lang.Exception
public ComponentConfiguration getComponent(java.lang.String aComponentName)
aComponentName
- name of the componentpublic int getComponentHashcode(java.lang.String aComponentName)
aComponentName
- name of the componentpublic boolean getComponentStatus(java.lang.String aComponentName)
aComponentName
- name of the componentpublic int getSize()
public void initComponent(ComponentDescriptor desc) throws java.lang.Exception
desc
- the component descriptorjava.lang.Exception
public void initComponent(java.lang.String aComponentName) throws java.lang.Exception
aComponentName
- component namejava.lang.Exception
public void initComponent(org.w3c.dom.Element node) throws java.lang.Exception
node
- component node from configuration filejava.lang.Exception
public void initialize() throws java.lang.Exception
java.lang.Exception
public java.util.Enumeration list()
public static ComponentManager singleton()