Package io.deephaven.configuration
Class PropertyInputStreamLoaderTraditional
java.lang.Object
io.deephaven.configuration.PropertyInputStreamLoaderTraditional
- All Implemented Interfaces:
PropertyInputStreamLoader
@AutoService(PropertyInputStreamLoader.class)
public class PropertyInputStreamLoaderTraditional
extends Object
implements PropertyInputStreamLoader
A
PropertyInputStreamLoader
implementation that first searches for the property file as a classpath resource,
and then via the filesystem. The priority is 100.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
A helper for determining the precedence of the loader.openConfiguration
(String name) Opens the property stream represented by the givenname
.
-
Constructor Details
-
PropertyInputStreamLoaderTraditional
public PropertyInputStreamLoaderTraditional()
-
-
Method Details
-
getPriority
public long getPriority()Description copied from interface:PropertyInputStreamLoader
A helper for determining the precedence of the loader.- Specified by:
getPriority
in interfacePropertyInputStreamLoader
- Returns:
- the priority - the lower, the better.
-
openConfiguration
Description copied from interface:PropertyInputStreamLoader
Opens the property stream represented by the givenname
.- Specified by:
openConfiguration
in interfacePropertyInputStreamLoader
- Parameters:
name
- the name of the prop file- Returns:
- the input stream
-