public class FileConfigurationSourceProvider extends Object implements ConfigurationSourceProvider
ConfigurationSourceProvider
that reads the configuration from the
local file system.Constructor and Description |
---|
FileConfigurationSourceProvider() |
Modifier and Type | Method and Description |
---|---|
InputStream |
open(String path)
Returns an
InputStream that contains the source of the configuration for the
application. |
public InputStream open(String path) throws IOException
ConfigurationSourceProvider
InputStream
that contains the source of the configuration for the
application. The caller is responsible for closing the result.open
in interface ConfigurationSourceProvider
path
- the path to the configurationInputStream
IOException
- if there is an error reading the data at path
Copyright © 2020. All rights reserved.