DATAJPA-489 - Adapted API changes in RepositoryProxyPostProcessor.
This commit is contained in:
@@ -25,6 +25,7 @@ import org.springframework.aop.framework.ProxyFactory;
|
||||
import org.springframework.aop.interceptor.ExposeInvocationInterceptor;
|
||||
import org.springframework.core.annotation.AnnotationUtils;
|
||||
import org.springframework.data.jpa.repository.Lock;
|
||||
import org.springframework.data.repository.core.RepositoryInformation;
|
||||
import org.springframework.data.repository.core.support.RepositoryProxyPostProcessor;
|
||||
import org.springframework.transaction.support.TransactionSynchronizationManager;
|
||||
|
||||
@@ -43,9 +44,10 @@ public enum LockModeRepositoryPostProcessor implements RepositoryProxyPostProces
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.springframework.data.repository.core.support.RepositoryProxyPostProcessor#postProcess(org.springframework.aop.framework.ProxyFactory)
|
||||
* @see org.springframework.data.repository.core.support.RepositoryProxyPostProcessor#postProcess(org.springframework.aop.framework.ProxyFactory, org.springframework.data.repository.core.RepositoryInformation)
|
||||
*/
|
||||
public void postProcess(ProxyFactory factory) {
|
||||
@Override
|
||||
public void postProcess(ProxyFactory factory, RepositoryInformation repositoryInformation) {
|
||||
|
||||
factory.addAdvice(ExposeInvocationInterceptor.INSTANCE);
|
||||
factory.addAdvice(LockModePopulatingMethodIntercceptor.INSTANCE);
|
||||
|
||||
Reference in New Issue
Block a user