use current classloader to get the proxied repository

This commit is contained in:
Christian Ramseier
2014-11-21 08:49:15 +01:00
committed by Michael Minella
parent 7be035cd3d
commit 77be8b97b4

View File

@@ -201,7 +201,7 @@ public abstract class AbstractJobRepositoryFactoryBean implements FactoryBean<Jo
if (proxyFactory == null) {
afterPropertiesSet();
}
return (JobRepository) proxyFactory.getProxy();
return (JobRepository) proxyFactory.getProxy(getClass().getClassLoader());
}
}