Package io.dropwizard.configuration
Class FileConfigurationSourceProvider
java.lang.Object
io.dropwizard.configuration.FileConfigurationSourceProvider
- All Implemented Interfaces:
ConfigurationSourceProvider
An implementation of
ConfigurationSourceProvider that reads the configuration from the
local file system.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns anInputStreamthat contains the source of the configuration for the application.
-
Constructor Details
-
FileConfigurationSourceProvider
public FileConfigurationSourceProvider()
-
-
Method Details
-
open
Description copied from interface:ConfigurationSourceProviderReturns anInputStreamthat contains the source of the configuration for the application. The caller is responsible for closing the result.- Specified by:
openin interfaceConfigurationSourceProvider- Parameters:
path- the path to the configuration- Returns:
- an
InputStream - Throws:
IOException- if there is an error reading the data atpath
-