Package io.dropwizard.configuration
Interface ConfigurationSourceProvider
-
- All Known Implementing Classes:
FileConfigurationSourceProvider
,ResourceConfigurationSourceProvider
,SubstitutingSourceProvider
,UrlConfigurationSourceProvider
public interface ConfigurationSourceProvider
An interface for objects that can create anInputStream
to represent the application configuration.
-
-
Method Summary
All Methods Instance Methods Abstract 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
InputStream open(String path) throws IOException
Returns anInputStream
that contains the source of the configuration for the application. The caller is responsible for closing the result.- Parameters:
path
- the path to the configuration- Returns:
- an
InputStream
- Throws:
IOException
- if there is an error reading the data atpath
-
-