classLoader = null; // Force use of Class.getClassLoader()
proxyFactory.setProxyTargetClass(proxyTargetClass);
}
DelegatingIntroductionInterceptor introduction = new DelegatingIntroductionInterceptor(ts);
introduction.suppressInterface(TargetSource.class);
if (ts instanceof ReplaceAndRefreshableScriptTargetSource) {
proxyFactory.addAdvice(new ScriptReplaceClassInfoMethodInterceptor());
}
proxyFactory.addAdvice(introduction);
return proxyFactory.getProxy(classLoader);