Skip to content

Explore reduced configuration extension - #653

Open
mp911de wants to merge 3 commits into
mainfrom
hacking/config-revision
Open

Explore reduced configuration extension#653
mp911de wants to merge 3 commits into
mainfrom
hacking/config-revision

Conversation

@mp911de

@mp911demp911de commented Oct 2, 2025

Copy link
Copy Markdown
Member

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

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.
@mp911demp911de added for: team-attention An issue we need to discuss as a team to make progress type: enhancement A general enhancement labels Oct 2, 2025
@mp911demp911de added the for: planning An issue we'd like to consider when planning our next release label Oct 30, 2025
@mp911de
mp911deforce-pushed the main branch 2 times, most recently from 4d265e2 to 25095d1CompareAugust 5, 2026 14:13
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

for: planningAn issue we'd like to consider when planning our next releasefor: team-attentionAn issue we need to discuss as a team to make progresstype: enhancementA general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revisit configuration model of KeyValueRepositoryConfigurationExtension

3 participants

@mp911de@christophstrobl@spring-projects-issues