in archaius2-core/src/main/java/com/netflix/archaius/AbstractRegistryDecoder.java [39:56]
public <T> T decode(Type type, String encoded) {
try {
if (encoded == null) {
return null;
}
@SuppressWarnings("unchecked")
TypeConverter<T> converter = (TypeConverter<T>) getOrCreateConverter(type);
if (converter == null) {
throw new RuntimeException("No converter found for type '" + type + "'");
}
return converter.convert(encoded);
} catch (Exception e) {
throw new ParseException("Unable to decode `"
+ encoded
+ "` as type `" + type.getTypeName() + "`: "
+ e, e);
}
}