Package io.deephaven.configuration
Class DefaultConfigurationContext
java.lang.Object
io.deephaven.configuration.DefaultConfigurationContext
- All Implemented Interfaces:
ConfigurationContext
Default
ConfigurationContext
implementation.-
Constructor Summary
ConstructorDescriptionCreate a ConfigurationContext and preload the non-system tokens. -
Method Summary
Modifier and TypeMethodDescriptionReturn the configuration contexts.boolean
Check whether the current system context matches one of the requested values in the specified scope
-
Constructor Details
-
DefaultConfigurationContext
public DefaultConfigurationContext()Create a ConfigurationContext and preload the non-system tokens.
-
-
Method Details
-
matches
Description copied from interface:ConfigurationContext
Check whether the current system context matches one of the requested values in the specified scope- Specified by:
matches
in interfaceConfigurationContext
- Parameters:
token
- The name of the property to checktargetValues
- A list of possible values for the specified property, such as 'process.name=foo'- Returns:
- True if the specified property currently has a value equal to one of the target values, false otherwise.
-
getContextKeyValues
Description copied from interface:ConfigurationContext
Return the configuration contexts. This is the list of properties that may have been used to parse the configuration file. Implementations must be sure to return an immutable collection.- Specified by:
getContextKeyValues
in interfaceConfigurationContext
- Returns:
- the configuration contexts.
-