Class TigerGlobalConfiguration

java.lang.Object
de.gematik.test.tiger.common.config.TigerGlobalConfiguration

public class TigerGlobalConfiguration extends Object
Central configuration store. All sources (Environment-variables, YAML-files, local exports) end up here and all configuration is loaded from here (Testenv-mgr, local tiger-proxy, test-lib configuration and also user-defined values).
  • Field Details

  • Constructor Details

    • TigerGlobalConfiguration

      public TigerGlobalConfiguration()
  • Method Details

    • reset

      public static void reset()
    • initialize

      public static void initialize()
    • initializeWithCliProperties

      public static void initializeWithCliProperties(Map<String,String> additionalProperties)
    • readString

      public static String readString(String key)
    • readString

      public static String readString(String key, String defaultValue)
    • readStringOptional

      public static Optional<String> readStringOptional(String key)
    • instantiateConfigurationBean

      public static <T> Optional<T> instantiateConfigurationBean(Class<T> configurationBeanClass, String... baseKeys)
    • instantiateConfigurationBeanStrict

      public static <T> Optional<T> instantiateConfigurationBeanStrict(Class<T> configurationBeanClass, String... baseKeys)
    • instantiateConfigurationBean

      public static <T> T instantiateConfigurationBean(com.fasterxml.jackson.core.type.TypeReference<T> configurationBeanType, String... baseKeys)
    • readFromYaml

      public static void readFromYaml(String yamlSource, String... baseKeys)
    • readFromYaml

      public static void readFromYaml(String yamlSource, SourceType sourceType, String... baseKeys)
    • readBoolean

      public static boolean readBoolean(String key)
    • readBoolean

      public static boolean readBoolean(String key, boolean defaultValue)
    • readBooleanOptional

      public static Optional<Boolean> readBooleanOptional(String key)
    • readTemplates

      public static void readTemplates(String templatesYaml, String... baseKeys)
    • readMap

      public static Map<String,String> readMap(String... baseKeys)
    • readMapWithCaseSensitiveKeys

      public static Map<String,String> readMapWithCaseSensitiveKeys(String... baseKeys)
    • listSources

      public static List<AbstractTigerConfigurationSource> listSources()
    • putValue

      public static void putValue(String key, String value)
    • putValue

      public static void putValue(String key, Object value)
    • putValue

      public static void putValue(String key, long value)
    • putValue

      public static void putValue(String key, boolean value)
    • putValue

      public static void putValue(String key, double value)
    • putValue

      public static void putValue(String key, int value)
    • putValue

      public static void putValue(String key, String value, SourceType sourceType)
    • putValue

      public static void putValue(String key, Object value, SourceType sourceType)
    • resolvePlaceholders

      public static String resolvePlaceholders(String stringToSubstitute)
    • readIntegerOptional

      public static Optional<Integer> readIntegerOptional(String key)
    • localScope

      public static TigerScopedExecutor localScope()
      Returns a local scope in which values can be added and code executed. This enables the use of very local values that can not (or should not) creep over into other parts of your testsuite.
      Returns:
    • getObjectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
    • isRequireTigerYaml

      public static boolean isRequireTigerYaml()
    • setRequireTigerYaml

      public static void setRequireTigerYaml(boolean requireTigerYaml)