Class CurrentClassLoader
- java.lang.Object
-
- org.glassfish.pfl.dynamic.codegen.impl.CurrentClassLoader
-
public class CurrentClassLoader extends java.lang.Object
Class used to set and get the global class loader used by the codegen library. This is maintained in a ThreadLocal to avoid concurrency problems. All processing in the codegen library takes place in the same thread in any case.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.ThreadLocal<java.lang.ClassLoader>
current
-
Constructor Summary
Constructors Constructor Description CurrentClassLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.ClassLoader
get()
static void
set(java.lang.ClassLoader cl)
-