List of usage examples for org.springframework.core OverridingClassLoader OverridingClassLoader
public OverridingClassLoader(@Nullable ClassLoader parent, @Nullable ClassLoader overrideDelegate)
From source file:org.springframework.instrument.classloading.ReflectiveLoadTimeWeaver.java
@Override public ClassLoader getThrowawayClassLoader() { if (this.getThrowawayClassLoaderMethod != null) { ClassLoader target = (ClassLoader) ReflectionUtils.invokeMethod(this.getThrowawayClassLoaderMethod, this.classLoader); return (target instanceof DecoratingClassLoader ? target : new OverridingClassLoader(this.classLoader, target)); } else {//from w w w . j a v a 2 s .co m return new SimpleThrowawayClassLoader(this.classLoader); } }