Class ConstructorTCCLClassLoaderSource

  • All Implemented Interfaces:
    ClassLoaderSource

    public class ConstructorTCCLClassLoaderSource
    extends java.lang.Object
    implements ClassLoaderSource
    ClassLoaderSource implementation that returns the thread context classloader (TCCL) in effect when this class' constructor is invoked.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.ref.WeakReference classLoaderRef  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.ClassLoader getClassLoader()
      Gets the classloader provided by this object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • classLoaderRef

        private final java.lang.ref.WeakReference classLoaderRef
    • Constructor Detail

      • ConstructorTCCLClassLoaderSource

        public ConstructorTCCLClassLoaderSource()
    • Method Detail

      • getClassLoader

        public java.lang.ClassLoader getClassLoader()
        Description copied from interface: ClassLoaderSource
        Gets the classloader provided by this object.
        Specified by:
        getClassLoader in interface ClassLoaderSource
        Returns:
        the classloader, or null if none is available