public static interface ConfigLoader.Loader
| Modifier and Type | Method and Description |
|---|---|
Config |
load(java.io.File file)
Load configuration from a specific file
|
CompositeConfig |
load(java.lang.String resourceName)
Load configuration by cascade resource name.
|
Config |
load(java.net.URL url)
Load configuration from a specific URL
|
ConfigLoader.Loader |
withCascadeStrategy(CascadeStrategy strategy)
Cascading policy to use the loading based on a resource name.
|
ConfigLoader.Loader |
withClassLoader(java.lang.ClassLoader loader)
Class loader to use
|
ConfigLoader.Loader |
withFailOnFirst(boolean flag)
Deprecated.
Requiring the existence of a configuration file seems excessive
|
ConfigLoader.Loader |
withOverrides(Config config)
Externally provided property overrides that are applied once
all cascaded files have been loaded
|
ConfigLoader.Loader |
withOverrides(java.util.Properties props)
Externally provided property overrides that are applied once
all cascaded files have been loaded
|
ConfigLoader.Loader withCascadeStrategy(CascadeStrategy strategy)
strategy - ConfigLoader.Loader withClassLoader(java.lang.ClassLoader loader)
loader - @Deprecated ConfigLoader.Loader withFailOnFirst(boolean flag)
ConfigLoader.Loader withOverrides(java.util.Properties props)
props - ConfigLoader.Loader withOverrides(Config config)
config - CompositeConfig load(java.lang.String resourceName) throws ConfigException
resourceName - ConfigExceptionConfig load(java.net.URL url) throws ConfigException
url - ConfigExceptionConfig load(java.io.File file) throws ConfigException
file - ConfigException