Class PropertySourceUtils

java.lang.Object
org.springframework.cloud.kubernetes.commons.config.PropertySourceUtils

public final class PropertySourceUtils extends Object
Utility class to work with property sources.
Author:
Georgios Andrianakis, Michael Moudatsos
  • Field Details

  • Method Details

    • yamlParserGenerator

      public static Function<String,Properties> yamlParserGenerator(org.springframework.core.env.Environment environment)
      Function to convert String into Properties with an environment.
      Parameters:
      environment - Environment.
      Returns:
      properties.
    • throwingMerger

      public static <T> BinaryOperator<T> throwingMerger()
      returns a BinaryOperator that unconditionally throws an IllegalStateException.
      Type Parameters:
      T - type of the argument
      Returns:
      a BinaryOperator