Skip to content

Commit 1a8596a

Browse files
committed
Make CrudMethodMetadataPostProcessor public and make factory getTargetRepository() not final. (#1913)
This is to ease extending spring-data-couchbase. Closes #1877.
1 parent e85b785 commit 1a8596a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/org/springframework/data/couchbase/repository/support/CouchbaseRepositoryFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public <T, ID> CouchbaseEntityInformation<T, ID> getEntityInformation(Class<T> d
118118
* @return a new created repository.
119119
*/
120120
@Override
121-
protected final Object getTargetRepository(final RepositoryInformation metadata) {
121+
protected Object getTargetRepository(final RepositoryInformation metadata) {
122122
CouchbaseOperations couchbaseOperations = couchbaseOperationsMapping.resolve(metadata.getRepositoryInterface(),
123123
metadata.getDomainType());
124124
CouchbaseEntityInformation<?, Serializable> entityInformation = getEntityInformation(metadata.getDomainType());

src/main/java/org/springframework/data/couchbase/repository/support/CrudMethodMetadataPostProcessor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
* @author Jens Schauder
5656
* @author Michael Reiche
5757
*/
58-
class CrudMethodMetadataPostProcessor implements RepositoryProxyPostProcessor, BeanClassLoaderAware {
58+
public class CrudMethodMetadataPostProcessor implements RepositoryProxyPostProcessor, BeanClassLoaderAware {
5959

6060
private @Nullable ClassLoader classLoader = ClassUtils.getDefaultClassLoader();
6161

src/main/java/org/springframework/data/couchbase/repository/support/ReactiveCouchbaseRepositoryFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public <T, ID> CouchbaseEntityInformation<T, ID> getEntityInformation(Class<T> d
106106
* @return a new created repository.
107107
*/
108108
@Override
109-
protected final Object getTargetRepository(final RepositoryInformation metadata) {
109+
protected Object getTargetRepository(final RepositoryInformation metadata) {
110110
ReactiveCouchbaseOperations couchbaseOperations = couchbaseOperationsMapping
111111
.resolve(metadata.getRepositoryInterface(), metadata.getDomainType());
112112
CouchbaseEntityInformation<?, Serializable> entityInformation = getEntityInformation(metadata.getDomainType());

0 commit comments

Comments
 (0)