Package io.deephaven.configuration
Interface PropertyInputStreamLoader
- All Known Implementing Classes:
PropertyInputStreamLoaderTraditional
public interface PropertyInputStreamLoader
An abstraction for opening property files. Invoked via
ParsedProperties.load(String).
The default implementation is PropertyInputStreamLoaderTraditional.
To override the default, additional PropertyInputStreamLoader implementations can be added to the classpath
and referenced via the ServiceLoader mechanism.
-
Method Summary
Modifier and TypeMethodDescriptionlongA helper for determining the precedence of the loader.openConfiguration(String name) Opens the property stream represented by the givenname.
-
Method Details
-
getPriority
long getPriority()A helper for determining the precedence of the loader.- Returns:
- the priority - the lower, the better.
-
openConfiguration
Opens the property stream represented by the givenname.- Parameters:
name- the name of the prop file- Returns:
- the input stream
- Throws:
ConfigurationException- if the property stream cannot be opened
-