Package io.dropwizard.configuration
Interface ConfigurationSourceProvider
-
- All Known Implementing Classes:
FileConfigurationSourceProvider,ResourceConfigurationSourceProvider,SubstitutingSourceProvider,UrlConfigurationSourceProvider
public interface ConfigurationSourceProviderAn interface for objects that can create anInputStreamto represent the application configuration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamopen(String path)Returns anInputStreamthat contains the source of the configuration for the application.
-
-
-
Method Detail
-
open
InputStream open(String path) throws IOException
Returns anInputStreamthat 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
-
-