Skip to content

Commit

Permalink
Make CrudMethodMetadataPostProcessor public and make factory getTarge…
Browse files Browse the repository at this point in the history
…tRepository() not final. (#1913)

This is to ease extending spring-data-couchbase.

Closes #1877.
  • Loading branch information
mikereiche committed Mar 13, 2024
1 parent f5ab702 commit e492ce4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public <T, ID> CouchbaseEntityInformation<T, ID> getEntityInformation(Class<T> d
* @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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
* @author Jens Schauder
* @author Michael Reiche
*/
class CrudMethodMetadataPostProcessor implements RepositoryProxyPostProcessor, BeanClassLoaderAware {
public class CrudMethodMetadataPostProcessor implements RepositoryProxyPostProcessor, BeanClassLoaderAware {

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public <T, ID> CouchbaseEntityInformation<T, ID> getEntityInformation(Class<T> d
* @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());
Expand Down

0 comments on commit e492ce4

Please sign in to comment.