Package hudson.util

Class CachingClassLoader

Direct Known Subclasses:
PluginManager.UberClassLoader

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class CachingClassLoader extends DelegatingClassLoader
ClassLoader with internal caching of class loading results.

Caches both successful and failed class lookups to avoid redundant delegation and repeated class resolution attempts. Designed for performance optimization in systems that repeatedly query class presence (e.g., plugin environments, reflective loading, optional dependencies).

Useful for classloaders that have heavy-weight loadClass() implementations
Author:
Dmytro Ukhlov
  • Constructor Details

  • Method Details