Class Configuration

java.lang.Object
org.antublue.test.engine.internal.Configuration

public class Configuration extends Object
Class to implement Configuration
  • Field Details

    • ANTUBLUE_TEST_ENGINE_CONFIGURATION_TRACE

      public static final String ANTUBLUE_TEST_ENGINE_CONFIGURATION_TRACE
      Configuration constant
      See Also:
  • Method Details

    • singleton

      public static Configuration singleton()
      Method to get the singleton
      Returns:
      the singleton
    • get

      public Optional<String> get(String key)
      Method to get a configuration property
      Parameters:
      key - the key
      Returns:
      the value
    • getOrDefault

      public Optional<String> getOrDefault(String key, String defaultValue)
      Method to get a configuration property
      Parameters:
      key - the key
      defaultValue - the default value
      Returns:
      the property value
    • getBoolean

      public Optional<Boolean> getBoolean(String key)
      Method to get a configuration property
      Parameters:
      key - the key
      Returns:
      the value
    • getBooleanOrDefault

      public Optional<Boolean> getBooleanOrDefault(String key, boolean defaultValue)
      Method to get a configuration property
      Parameters:
      key - the key
      defaultValue - the default value
      Returns:
      the value