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:
@@ -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());
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user