Class CconfigTypeConverter
java.lang.Object
org.chenile.cconfig.sdk.impl.CconfigTypeConverter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ConfigurationExceptionconversionException(String module, String key, String targetType, Exception cause) static <T> Tconvert(Object rawValue, com.fasterxml.jackson.core.type.TypeReference<T> targetType, String module, String key) static <T> Tstatic ObjectextractRawValue(Map<String, Object> valueMap, String key) private static booleanshouldParseAsJson(String value) private static booleanshouldParseAsJson(String value, Class<?> targetType)
-
Field Details
-
objectMapper
-
-
Constructor Details
-
CconfigTypeConverter
private CconfigTypeConverter()
-
-
Method Details
-
extractRawValue
-
convert
-
convert
-
shouldParseAsJson
-
shouldParseAsJson
-
conversionException
private static ConfigurationException conversionException(String module, String key, String targetType, Exception cause)
-