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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
configExists(String path)
Checks if the given configuration path existsInputStream
getConfig(String path)
Get the content of the given configuration file
-
-
-
Method Detail
-
configExists
boolean configExists(String path)
Checks if the given configuration path exists- Parameters:
path
- the configuration path- Returns:
- true if the configuration exists
-
getConfig
InputStream getConfig(String path) throws IOException
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
-
-