Class PropertySourceUtils
java.lang.Object
org.springframework.cloud.kubernetes.commons.config.PropertySourceUtils
Utility class to work with property sources.
- Author:
- Georgios Andrianakis, Michael Moudatsos
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Function<String,Properties> Function to convert a String to Properties.static final Function<Properties,Map<String, Object>> Function to convert Properties to a Map. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> BinaryOperator<T>returns aBinaryOperatorthat unconditionally throws anIllegalStateException.static Function<String,Properties> yamlParserGenerator(org.springframework.core.env.Environment environment) Function to convert String into Properties with an environment.
-
Field Details
-
KEY_VALUE_TO_PROPERTIES
Function to convert a String to Properties. -
PROPERTIES_TO_MAP
Function to convert Properties to a Map.
-
-
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
returns aBinaryOperatorthat unconditionally throws anIllegalStateException.- Type Parameters:
T- type of the argument- Returns:
- a
BinaryOperator
-