Class CconfigTypeConverter

java.lang.Object
org.chenile.cconfig.sdk.impl.CconfigTypeConverter

public final class CconfigTypeConverter extends Object
  • Field Details

    • objectMapper

      private static final ObjectMapper objectMapper
  • Constructor Details

    • CconfigTypeConverter

      private CconfigTypeConverter()
  • Method Details

    • extractRawValue

      public static Object extractRawValue(Map<String,Object> valueMap, String key)
    • convert

      public static <T> T convert(Object rawValue, Class<T> targetType, String module, String key)
    • convert

      public static <T> T convert(Object rawValue, com.fasterxml.jackson.core.type.TypeReference<T> targetType, String module, String key)
    • shouldParseAsJson

      private static boolean shouldParseAsJson(String value, Class<?> targetType)
    • shouldParseAsJson

      private static boolean shouldParseAsJson(String value)
    • conversionException

      private static ConfigurationException conversionException(String module, String key, String targetType, Exception cause)