micronaut-core
micronaut-core copied to clipboard
Do not allow registering shared state type convertor into the shared instance `ConversionService.DEFAULT`
Issue description
There are some issues that are causing it https://github.com/micronaut-projects/micronaut-core/pull/7635
Major changes are needed:
- Remove methods that add converters to
ConversionServiceand introduceMutableConversionService - Allow contributing converters to
ConversionService.DEFAULTonly by service loader entries - Register bean context converters to a managed instance of
ConversionServicethat is delegating toConversionService.DEFAULTjust like Micronaut Data is doing https://github.com/micronaut-projects/micronaut-data/blob/a9c1f96ec45f3b4bf8dd250e8342e59e3b99d5b4/data-runtime/src/main/java/io/micronaut/data/runtime/convert/DataConversionServiceImpl.java