From 21a6f19312c068fa99ee510efbf5d8a8cc6576d5 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Wed, 14 Dec 2016 13:58:47 +0100 Subject: [PATCH] DATACMNS-958 - Use ExposeInvocationInterceptor.ADVISOR in RepositoryFactorySupport. Its usage is recommended over using the instance as advice. --- .../data/repository/core/support/RepositoryFactorySupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java index 3a7a8c993..6d3bd85bf 100644 --- a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java +++ b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java @@ -206,7 +206,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, result.setTarget(target); result.setInterfaces(new Class[] { repositoryInterface, Repository.class }); - result.addAdvice(ExposeInvocationInterceptor.INSTANCE); + result.addAdvisor(ExposeInvocationInterceptor.ADVISOR); if (TRANSACTION_PROXY_TYPE != null) { result.addInterface(TRANSACTION_PROXY_TYPE);