Make CrudMethodMetadataPostProcessor public and make factory getTargetRepository() not final. (#1913)

This is to ease extending spring-data-couchbase.

Closes #1877.
This commit is contained in:
Michael Reiche
2024-03-04 15:50:41 -05:00
committed by GitHub
parent 86747412e0
commit ff5ba5fd23
3 changed files with 3 additions and 3 deletions

View File

@@ -118,7 +118,7 @@ public class CouchbaseRepositoryFactory extends RepositoryFactorySupport {
* @return a new created repository.
*/
@Override
protected final Object getTargetRepository(final RepositoryInformation metadata) {
protected Object getTargetRepository(final RepositoryInformation metadata) {
CouchbaseOperations couchbaseOperations = couchbaseOperationsMapping.resolve(metadata.getRepositoryInterface(),
metadata.getDomainType());
CouchbaseEntityInformation<?, Serializable> entityInformation = getEntityInformation(metadata.getDomainType());

View File

@@ -55,7 +55,7 @@ import com.couchbase.client.java.query.QueryScanConsistency;
* @author Jens Schauder
* @author Michael Reiche
*/
class CrudMethodMetadataPostProcessor implements RepositoryProxyPostProcessor, BeanClassLoaderAware {
public class CrudMethodMetadataPostProcessor implements RepositoryProxyPostProcessor, BeanClassLoaderAware {
private @Nullable ClassLoader classLoader = ClassUtils.getDefaultClassLoader();

View File

@@ -106,7 +106,7 @@ public class ReactiveCouchbaseRepositoryFactory extends ReactiveRepositoryFactor
* @return a new created repository.
*/
@Override
protected final Object getTargetRepository(final RepositoryInformation metadata) {
protected Object getTargetRepository(final RepositoryInformation metadata) {
ReactiveCouchbaseOperations couchbaseOperations = couchbaseOperationsMapping
.resolve(metadata.getRepositoryInterface(), metadata.getDomainType());
CouchbaseEntityInformation<?, Serializable> entityInformation = getEntityInformation(metadata.getDomainType());