Package org.jboss.util.loading
Class ConstructorTCCLClassLoaderSource
- java.lang.Object
-
- org.jboss.util.loading.ConstructorTCCLClassLoaderSource
-
- All Implemented Interfaces:
ClassLoaderSource
public class ConstructorTCCLClassLoaderSource extends java.lang.Object implements ClassLoaderSource
ClassLoaderSource
implementation that returns thethread 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
-
Constructor Summary
Constructors Constructor Description ConstructorTCCLClassLoaderSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ClassLoader
getClassLoader()
Gets the classloader provided by this object.
-
-
-
Method Detail
-
getClassLoader
public java.lang.ClassLoader getClassLoader()
Description copied from interface:ClassLoaderSource
Gets the classloader provided by this object.- Specified by:
getClassLoader
in interfaceClassLoaderSource
- Returns:
- the classloader, or
null
if none is available
-
-