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 ofConfigurationSourceProviderthat 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 InputStreamopen(String path)Returns anInputStreamthat contains the source of the configuration for the application.
-
-
-
Method Detail
-
open
public InputStream open(String path) throws IOException
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
-
-