AbstractConfig#getValueWithDefault(Class, String, T) is NOT able to decode collection types, but AbstractConfig#(Type, String, T) can, if a ParametrizedType is passed. We should provide a shorthand method to create such ParametrizedTypes. Otherwise, users are forced to hunt themselves for a way to create them.
Apache Commons Lang 3's TypeUtils has sample code that we could copy and specialize for this restricted use case.
AbstractConfig#getValueWithDefault(Class, String, T)
is NOT able to decode collection types, butAbstractConfig#(Type, String, T)
can, if aParametrizedType
is passed. We should provide a shorthand method to create suchParametrizedTypes
. Otherwise, users are forced to hunt themselves for a way to create them.Apache Commons Lang 3's
TypeUtils
has sample code that we could copy and specialize for this restricted use case.