Class DefaultConfigurationContext

java.lang.Object
io.deephaven.configuration.DefaultConfigurationContext
All Implemented Interfaces:
ConfigurationContext

public class DefaultConfigurationContext extends Object implements ConfigurationContext
Default ConfigurationContext implementation.
  • Constructor Details

    • DefaultConfigurationContext

      public DefaultConfigurationContext()
      Create a ConfigurationContext and preload the non-system tokens.
  • Method Details

    • matches

      public boolean matches(String token, List<String> targetValues)
      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 interface ConfigurationContext
      Parameters:
      token - The name of the property to check
      targetValues - 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

      public Collection<String> 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 interface ConfigurationContext
      Returns:
      the configuration contexts.