| java.lang.Object com.jcorporate.expresso.kernel.management.ComponentConfigBridge
ComponentConfigBridge | public class ComponentConfigBridge (Code) | | Provides getting and setting of configuration information for individual components
author: Michael Rimov version: $Revision: 1.4 $ on $Date: 2004/11/17 20:48:17 $ |
ComponentConfigBridge | public ComponentConfigBridge()(Code) | | Creates a new ComponentConfigBridge object.
|
getConfiguration | public ComponentConfig getConfiguration(ExpressoComponent sourceComponent) throws ConfigurationException(Code) | | Given a component, retrieve the component config object for this
component. It is intended for this function to be used at Runtime (as
opposed to startup time). It locks the entire ComponentConfigBridge
class so that only one component configuration by one administrator can
take place at a time.
This function only retrieves the configuration of the target
configuration, not its children.
Parameters: sourceComponent - the Component to retrieve the configuration for. a filled out ComponentConfig object for the given targetcomponent throws: ConfigurationException - upon error |
setConfiguration | public void setConfiguration(ExpressoComponent targetComponent, ComponentConfig newConfiguration) throws ConfigurationException(Code) | | Resets the configuration for a component. It is intended for this
function to be used at Runtime. It locks the entire
ComponentConfigBridge class so that only one component configuration by
one administrator can take place at a time.
Parameters: targetComponent - the Component to configure Parameters: newConfiguration - the new configuration information to set for thecomponent throws: ConfigurationException - if there is an error configuring thecomponent. |
updateSystemConfiguration | public void updateSystemConfiguration(ExpressoComponent changedComponent, ExpressoServicesConfig allServicesConfiguration, ComponentConfig newConfiguration) throws ConfigurationException(Code) | | Updates the system configuration to that of the component that has
been changed
Parameters: changedComponent - The changed component to be updated Parameters: allServicesConfiguration - The Complete Expresso Services Configusually obtained from the RootContainerInterface Parameters: newConfiguration - the new Configuration of the component. This canbe obtained from this objects getConfiguration() method throws: ConfigurationException - upon error. |
|
|