Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback to default fragment implementation if no candidates found #3018

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

quaff
Copy link
Contributor

@quaff quaff commented Jan 5, 2024

It's an enhancement that should not break existing behaviors.

The default implementation is $FragmentInterfaceName + $ImplementationPostfix, for example com.example.FragmentImpl is the default implementation of com.example.Fragment.

It's useful for sharing repository fragments as library, application doesn't have to include library package in @Enable…Repositories, and it will back off if application provides custom implementation.

See spring-projects/spring-data-jpa#3287

It's an enhancement that should not break existing behaviors.

The default implementation is `$FragmentInterfaceName + $ImplementationPostfix`, for example `com.example.FragmentImpl` is the default implementation of `com.example.Fragment`.

It's useful for sharing repository fragments as library, application doesn't have to include library package in `@Enable…Repositories`, and it will back off if application provides custom implementation.

See spring-projects/spring-data-jpa#3287
@mp911de
Copy link
Member

mp911de commented Mar 4, 2024

Thanks for your suggestion. We need to discuss in the team whether we want to support external fragments and how discovery is affected with a fragment implementation inside the base package vs. a fragment implementation that resides in the package the interface is defined in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: team-attention An issue we need to discuss as a team to make progress status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants