spring-data-keyvalue icon indicating copy to clipboard operation
spring-data-keyvalue copied to clipboard

Explore reduced configuration extension

Open mp911de opened this issue 3 months ago • 0 comments

Do not register a MappingContext through the extension, instead expose a MappingContext through KeyValueAdapter so implementations can bring their own mapping context. They can also decide where to obtain the mapping context from and whether to expose it as bean at all. This is useful for a minimal configuration and removes the need to detect whether there is already a mapping context available.

Detection of mapping context (or even converters) can go either into the adapter or somewhere else as detecting bean registrations depends on configuration ordering. Any later bean registrations might be not visible to our extension and so we had always the drawback of requiring any customizations being colocated within the config class that uses the Enable…Repositories annotation.

Do not merge yet, rather a target for 4.1.

TODO:

  • [ ] Introduce deprecations for removed API in prior
    • KeyValueTemplate
    • KeyValueRepositoryConfigurationExtension
  • [ ] Explore downstream changes in Redis

mp911de avatar Oct 02 '25 09:10 mp911de