Skip to content

Add RepositoryMetadataAccess interface #3145

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

Closed
wants to merge 5 commits into from
Closed

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Aug 29, 2024

Repositories that detect fragment implementations implementing RepositoryMetadataAccess enable metadata exposure regardless of the exposeMetadata flag on the repository factory.

Repositories that detect fragment implementations implementing RepositoryMetadataAccess enable metadata exposure regardless of the exposeMetadata flag.
@mp911de mp911de added the type: enhancement A general enhancement label Aug 29, 2024
@mp911de mp911de changed the title Add RepositoryMetadataAccess Add RepositoryMetadataAccess interface Aug 29, 2024
* @param implementation
* @deprecated since 3.4 - use {@link ImplementedRepositoryFragment(Class, Object)} instead.
*/
@Deprecated(since = "3.4")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a forRemoval=true so that we clean up the API with Spring Data 4.0

}
return (Class<T>) implementation.getClass();
});
if(interfaceClass != null) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Formatting

@@ -216,7 +228,7 @@ public RepositoryFragment<T> withImplementation(T implementation) {
public String toString() {

return String.format("ImplementedRepositoryFragment %s%s",
interfaceClass.map(ClassUtils::getShortName).map(it -> it + ":").orElse(""),
interfaceClass != null ? (ClassUtils.getShortName(interfaceClass) + ";") : "",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: A slight change in : vs. ;

christophstrobl pushed a commit that referenced this pull request Sep 4, 2024
Repositories that detect fragment implementations implementing RepositoryMetadataAccess enable metadata exposure regardless of the exposeMetadata flag.

See: #3090
Original Pull Request: #3145
christophstrobl added a commit that referenced this pull request Sep 4, 2024
Update documentation.
Additional logging for repository bootstrap procedure.
Limit usage of Optional in RepositoryFragment.

Original Pull Request: #3145
@christophstrobl christophstrobl deleted the issues/metadata-access branch September 4, 2024 09:14
@mp911de mp911de added this to the 3.4 M1 (2024.1.0) milestone Sep 10, 2024
mipo256 pushed a commit to mipo256/spring-data-commons that referenced this pull request Sep 21, 2024
Repositories that detect fragment implementations implementing RepositoryMetadataAccess enable metadata exposure regardless of the exposeMetadata flag.

See: spring-projects#3090
Original Pull Request: spring-projects#3145
mipo256 pushed a commit to mipo256/spring-data-commons that referenced this pull request Sep 21, 2024
Update documentation.
Additional logging for repository bootstrap procedure.
Limit usage of Optional in RepositoryFragment.

Original Pull Request: spring-projects#3145
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants