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 3ec98b38e2
commit ba4c7b11c9

View File

@@ -203,7 +203,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);