Interface Configuration

All Known Implementing Classes:
StaticConfiguration

public interface Configuration
Interface for accessing Jolokia configuration.
Since:
13.04.13
Author:
roland
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check whether the given configuration holds a value for the given key
    Get a configuration value if set as configuration or the default value if not
    getConfig(ConfigKey pKey, boolean checkSysOrEnv)
    Get a configuration value if set as configuration or the default value if not
    Get all keys stored in this configuration
  • Method Details

    • getConfig

      String getConfig(ConfigKey pKey)
      Get a configuration value if set as configuration or the default value if not
      Parameters:
      pKey - the configuration key to lookup
      Returns:
      the configuration value or the default value if no configuration was given.
    • getConfig

      String getConfig(ConfigKey pKey, boolean checkSysOrEnv)
      Get a configuration value if set as configuration or the default value if not
      Parameters:
      pKey - the configuration key to lookup
      checkSysOrEnv - whether system property or environment variable should be checked first
      Returns:
      the configuration value or the default value if no configuration was given.
    • getConfigKeys

      Set<ConfigKey> getConfigKeys()
      Get all keys stored in this configuration
    • containsKey

      boolean containsKey(ConfigKey pKey)
      Check whether the given configuration holds a value for the given key
      Parameters:
      pKey - key to check
      Returns:
      true if the configuration has this key