Package org.craftercms.commons.config
Interface ConfigurationProvider
public interface ConfigurationProvider
Defines the operations to access configuration files
- Since:
- 3.1.6
- Author:
- joseross
-
Method Summary
Modifier and TypeMethodDescriptionboolean
configExists
(String path) Checks if the given configuration path existsGet the content of the given configuration file
-
Method Details
-
configExists
Checks if the given configuration path exists- Parameters:
path
- the configuration path- Returns:
- true if the configuration exists
-
getConfig
Get the content of the given configuration file- Parameters:
path
- the configuration path- Returns:
- the content of the configuration
- Throws:
IOException
- if there is any error reading the configuration
-