Netflix / archaius

Library for configuration management API
Apache License 2.0
2.47k stars 486 forks source link

Add a Decoder that accepts custom TypeConverters #702

Closed kilink closed 8 months ago

kilink commented 8 months ago

Add a new Decoder, CustomDecoder, which allows users to easily specify custom TypeConverter implementations. CustomDecoder exposes a single static factory method, create, which accepts a Collection of TypeConverter.Factory instances.

As part of adding this feature, refactor DefaultDecoder in a re-usable base class, AbstractRegistryDecoder, which CustomDecoder also extends from.