| java.lang.Object es.udc.mypersonalizer.kernel.util.config.ConfigurationManager
ConfigurationManager | public class ConfigurationManager (Code) | | This class is responsible for providing each part of the system with its
configuration data. For that, it maintains a cache of configurations
(Kernel, Portal, Database...) and triggers the reading of the adequate XML
configuration file when it is necessary.
The XML files are processed using Jakarta Digester, and turned into a tree
of configuration beans.
author: Daniel Fernandez author: Fernando Bellas since: 1.0 |
getConfiguration | public static Configuration getConfiguration(String configurationName, EntityResolver entityResolver) throws InternalErrorException(Code) | | Returns the configuration identified by configurationName .
Parameters: configurationName - the configuration name. Parameters: entityResolver - entity resolver to be used for XML entities. throws: InternalErrorException - if any fatal errors happen. the wanted Configuration. |
getConfiguration | public static Configuration getConfiguration(String configurationName, String configurationRulesName, EntityResolver entityResolver) throws InternalErrorException(Code) | | Returns the configuration identified by configurationName .
It allows to specify the name of the rules file (without suffix, see
above).
Parameters: configurationName - the name of the configuration Parameters: configurationRulesName - the name of the configuration rules file Parameters: entityResolver - entity resolver to be used for XML entities. throws: InternalErrorException - if any fatal errors happen. the wanted Configuration. |
getConfigurationFileName | protected static String getConfigurationFileName(String configurationName)(Code) | | Build the configuration file name from the configuration name.
Parameters: configurationName - name of the configuration a String being the configuration file name. |
getConfigurationRulesFileName | protected static String getConfigurationRulesFileName(String configurationName)(Code) | | Builds the configuration rules file name from the configuration name.
Parameters: configurationName - the name of the configuration. a String being the name of the configuration rules file. |
|
|