com.ibm.commerce.foundation.common.config

Class ComponentConfigurationRegistry

  • java.lang.Object
    • com.ibm.commerce.foundation.common.config.ComponentConfigurationRegistry


  • public class ComponentConfigurationRegistry
    extends java.lang.Object
    Component configuration registry. Reads configuration files from the configuration directory, as needed, and loads them into the registry. The configuration directory is WC_INSTALL/xml/config/comp_id. (i.e. WC_INSTALL/xml/config/com.ibm.commerce.catalog) If any problems are encountered during component registration, a ComponentConfigurationException is raised and the configuration of the component will not be stored. i.e. Failed to read a configuration file.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Method Detail

      • getComponentConfiguration

        public ComponentConfiguration getComponentConfiguration(java.lang.String astrComponentId)
        Gets the component configuration for the component by the specified component ID. The component configuration is loaded when the configuration is first requested for this component. If any errors occur while loading the configuration, a ComponentConfigurationException is thrown.
        Parameters:
        astrComponentId - the component ID.
        Returns:
        The configuration for the component specified; null if no configuration is available for the specified component ID.
      • reloadComponentConfiguration

        public ComponentConfiguration reloadComponentConfiguration(java.lang.String astrComponentId)
        Forcefully reloads the component configuration from the configuration files for the component by the specified component ID. This operation overrides the reload settings for this given component.
        Parameters:
        astrComponentId - the component ID.
        Returns:
        The newly reloaded configuration for the component specified; null if no configuration is available for the specified component ID.