Class OverridingClassLoader

  • Direct Known Subclasses:
    SimpleInstrumentableClassLoader, SimpleThrowawayClassLoader

    public class OverridingClassLoader
    extends DecoratingClassLoader
    ClassLoader that does not always delegate to the parent loader as normal class loaders do. This enables, for example, instrumentation to be forced in the overriding ClassLoader, or a "throwaway" class loading behavior where selected application classes are temporarily loaded in the overriding ClassLoader for introspection purposes before eventually loading an instrumented version of the class in the given parent ClassLoader.
    Since:
    2.0.1
    Author:
    Rod Johnson, Juergen Hoeller