Class ConfigTransformer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.regex.Pattern DEFAULT_PATTERN  
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfigTransformer​(java.util.Map<java.lang.String,​ConfigProvider> configProviders)
      Creates a ConfigTransformer with the default pattern, of the form ${provider:[path:]key}.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ConfigTransformerResult transform​(java.util.Map<java.lang.String,​java.lang.String> configs)
      Transforms the given configuration data by using the ConfigProvider instances to look up values to replace the variables in the pattern.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_PATTERN

        public static final java.util.regex.Pattern DEFAULT_PATTERN
    • Constructor Detail

      • ConfigTransformer

        public ConfigTransformer​(java.util.Map<java.lang.String,​ConfigProvider> configProviders)
        Creates a ConfigTransformer with the default pattern, of the form ${provider:[path:]key}.
        Parameters:
        configProviders - a Map of provider names and ConfigProvider instances.
    • Method Detail

      • transform

        public ConfigTransformerResult transform​(java.util.Map<java.lang.String,​java.lang.String> configs)
        Transforms the given configuration data by using the ConfigProvider instances to look up values to replace the variables in the pattern.
        Parameters:
        configs - the configuration values to be transformed
        Returns:
        an instance of ConfigTransformerResult