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