Package org.craftercms.commons.config
Interface ConfigurationResolver
- All Known Implementing Classes:
ConfigurationResolverImpl
public interface ConfigurationResolver
Provides access to configuration files taking into account the active environment
- Since:
- 3.1.6
- Author:
- joseross
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.configuration2.HierarchicalConfiguration<?>
getXmlConfiguration
(String module, String path, ConfigurationProvider provider) Get the content of a given configuration file
-
Method Details
-
getXmlConfiguration
org.apache.commons.configuration2.HierarchicalConfiguration<?> getXmlConfiguration(String module, String path, ConfigurationProvider provider) throws ConfigurationException Get the content of a given configuration file- Parameters:
module
- the name of the modulepath
- the path of the fileprovider
- the provider to read the file- Returns:
- the configuration instance
- Throws:
ConfigurationException
- if there is any error reading the configuration
-