Package io.dropwizard.configuration
Class FileConfigurationSourceProvider
- java.lang.Object
-
- io.dropwizard.configuration.FileConfigurationSourceProvider
-
- All Implemented Interfaces:
ConfigurationSourceProvider
public class FileConfigurationSourceProvider extends Object implements ConfigurationSourceProvider
An implementation ofConfigurationSourceProvider
that reads the configuration from the local file system.
-
-
Constructor Summary
Constructors Constructor Description FileConfigurationSourceProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
open(String path)
Returns anInputStream
that contains the source of the configuration for the application.
-
-
-
Method Detail
-
open
public InputStream open(String path) throws IOException
Description copied from interface:ConfigurationSourceProvider
Returns anInputStream
that contains the source of the configuration for the application. The caller is responsible for closing the result.- Specified by:
open
in interfaceConfigurationSourceProvider
- Parameters:
path
- the path to the configuration- Returns:
- an
InputStream
- Throws:
IOException
- if there is an error reading the data atpath
-
-