DATACMNS-958 - Use ExposeInvocationInterceptor.ADVISOR in RepositoryFactorySupport.

Its usage is recommended over using the instance as advice.
This commit is contained in:
Oliver Gierke
2016-12-14 13:58:47 +01:00
parent a9c3b9f66f
commit 21a6f19312

View File

@@ -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);