java.lang.Object
org.antublue.test.engine.internal.configuration.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

    • getInstance

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

      public Optional<String> getProperty(String key)
      Method to get a property
      Parameters:
      key - key
      Returns:
      an Optional
    • getProperty

      public <T> Optional<T> getProperty(String key, Function<String,T> transformer)
    • getPropertyNames

      public Set<String> getPropertyNames()
      Method to get a Set of configuration keys
      Returns:
      a Set of configuration keys
    • getPropertyNames

      public Set<String> getPropertyNames(Predicate<String> predicate)
      Method to a set of property keys, filtered by a Predicate
      Parameters:
      predicate - predicate
      Returns:
      a Set of property keys filtered by a Predicate
    • getPropertiesFilename

      public String getPropertiesFilename()
      Method to the properties filename
      Returns:
      the properties filename
    • size

      public int size()
      Method to get the number of configuration properties
      Returns:
      the number of configuration properties