BaseConfigurationFactory, JsonConfigurationFactory, YamlConfigurationFactorypublic interface ConfigurationFactory<T>
| Modifier and Type | Method | Description |
|---|---|---|
T |
build() |
Loads, parses, binds, and validates a configuration object from an empty document.
|
T |
build(ConfigurationSourceProvider provider,
java.lang.String path) |
Loads, parses, binds, and validates a configuration object.
|
default T |
build(java.io.File file) |
Loads, parses, binds, and validates a configuration object from a file.
|
T build(ConfigurationSourceProvider provider, java.lang.String path) throws java.io.IOException, ConfigurationException
provider - the provider to to use for reading configuration filespath - the path of the configuration filejava.io.IOException - if there is an error reading the fileConfigurationException - if there is an error parsing or validating the filedefault T build(java.io.File file) throws java.io.IOException, ConfigurationException
file - the path of the configuration filejava.io.IOException - if there is an error reading the fileConfigurationException - if there is an error parsing or validating the fileT build() throws java.io.IOException, ConfigurationException
java.io.IOException - if there is an error reading the fileConfigurationException - if there is an error parsing or validating the fileCopyright © 2018. All rights reserved.