@ Override public ClassLoader getThrowawayClassLoader ( ) { ClassLoader newParent = getThrowawayVersion ( getParent ( ) ) ; ClassLoader [ ] newFollowOns = new ClassLoader [ followOnClassLoaders . size ( ) ] ; for ( int i = 0 ; i < newFollowOns . length ; i ++ ) { newFollowOns [ i ] = getThrowawayVersion ( followOnClassLoaders . get ( i ) ) ; } return new UnifiedClassLoader ( newParent , newFollowOns ) ; }
Special method used by Spring to obtain a throwaway class loader for this ClassLoader