From ee4c4981348d0e9003c22a67603f953b3c3be292 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Thu, 6 Mar 2014 16:56:13 +0100 Subject: [PATCH] DATAJPA-489 - Adapted API changes in RepositoryProxyPostProcessor. --- .../repository/support/LockModeRepositoryPostProcessor.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/springframework/data/jpa/repository/support/LockModeRepositoryPostProcessor.java b/src/main/java/org/springframework/data/jpa/repository/support/LockModeRepositoryPostProcessor.java index 8b2cdff40..ec7b2d820 100644 --- a/src/main/java/org/springframework/data/jpa/repository/support/LockModeRepositoryPostProcessor.java +++ b/src/main/java/org/springframework/data/jpa/repository/support/LockModeRepositoryPostProcessor.java @@ -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);