You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/antora/modules/ROOT/pages/repositories/custom-implementations.adoc
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -475,7 +475,7 @@ XML::
475
475
[[repositories.customize-repository-factory]]
476
476
== Customizing the Repository Factory
477
477
478
-
Customizing the javadoc:org.springframework.data.repository.core.support.RepositoryFactorySupport[repository factory] through javadoc:org.springframework.data.repository.core.support.RepositoryFactoryCustomizer[] provides direct access to components involved with repository instance creation.
478
+
Customizing the {spring-data-commons-docs-url}/api/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.html[repository factory] through {spring-data-commons-docs-url}/api/java/org/springframework/data/repository/core/support/RepositoryFactoryCustomizer.html[`RepositoryFactoryCustomizer`] provides direct access to components involved with repository instance creation.
479
479
This mechanism is useful when you want to adjust selected aspects of proxy creation without introducing a fully custom repository factory bean.
480
480
The following example, demonstrates registering additional listeners and proxy advisors:
481
481
@@ -495,7 +495,8 @@ Note that customizer beans are not applied automatically to prevent unwanted wir
The most powerful approach to customize repository creation is to provide a custom repository factory bean, typically a subclass of javadoc:org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport[], javadoc:org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport[] or the store-specific repository factory bean.
498
+
The most powerful approach to customize repository creation is to provide a custom repository factory bean, typically a subclass of {spring-data-commons-docs-url}/api/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.html[`RepositoryFactorySupport`],
499
+
{spring-data-commons-docs-url}/api/java/org/springframework/data/repository/core/support/TransactionalRepositoryFactoryBeanSupport.html[`TransactionalRepositoryFactoryBeanSupport`] or the store-specific repository factory bean.
499
500
500
501
Customizing the repository factory bean allows you to change repository creation entirely with full access to the underlying repository factory.
501
502
@@ -504,7 +505,7 @@ Also, you need to take in consideration repository metadata derivation that is u
504
505
The following summary outlines the key aspects:
505
506
506
507
* `repositoryBaseClass`: The repository base class defines which methods are implemented by the base class and which methods require additional handling through aspects or custom implementations.
507
-
* `repositoryFragmentsContributor`: A javadoc:org.springframework.data.repository.core.support.RepositoryFragmentsContributor[] allows contributions to repository composition after all standard fragments have been collected.
508
+
* `repositoryFragmentsContributor`: A {spring-data-commons-docs-url}/api/java/org/springframework/data/repository/core/support/RepositoryFragmentsContributor.html[`RepositoryFragmentsContributor`] allows contributions to repository composition after all standard fragments have been collected.
508
509
Store modules use this mechanism to add features such as Querydsl or Query-by-Example support.
509
510
It also serves as an SPI for third-party extensions.
510
511
* `exposeMetadata`: Controls whether <<expose-repository-metadata,invocation metadata>> is available through `RepositoryMethodContext.getContext()`.
0 commit comments