Class ConfigurationFactory
java.lang.Object
is.galia.config.ConfigurationFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic Configuration
static ConfigurationProvider
newProviderFromPath
(Path path) static void
setAppInstance
(Configuration config)
-
Method Details
-
fromPath
- Parameters:
path
- Configuration file path.- Returns:
- New instance for the given path.
- Throws:
IOException
-
newProviderFromPath
- Parameters:
path
- Configuration file path.- Returns:
- New instance suitable for using as the application
configuration. The instance will contain an
EnvironmentConfiguration
at position 0 and aYAMLConfiguration
at position 1. - Throws:
IOException
- if there is an error reading the file.
-
setAppInstance
-