diff options
Diffstat (limited to 'src/main/javassist/runtime/Desc.java')
-rw-r--r-- | src/main/javassist/runtime/Desc.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/javassist/runtime/Desc.java b/src/main/javassist/runtime/Desc.java index 9fbe8f22..8299b5cd 100644 --- a/src/main/javassist/runtime/Desc.java +++ b/src/main/javassist/runtime/Desc.java @@ -41,10 +41,25 @@ public class Desc { } }; + /** + * Changes so that the current thread will use the context class loader + * when a class is loaded. + * This method changes the behavior per thread unlike {@link useContextClassLoader}. + * + * @since 3.25 + */ public static void setUseContextClassLoaderLocally() { USE_CONTEXT_CLASS_LOADER_LOCALLY.set(true); } + /** + * Changes so that the current thread will not use the context class loader + * when a class is loaded. + * Call this method before releasing the current thread for reuse. + * It invokes <code>ThreadLocal.remvoe()</code>. + * + * @since 3.25 + */ public static void resetUseContextClassLoaderLocally() { USE_CONTEXT_CLASS_LOADER_LOCALLY.remove(); } |