Class PrivilegedGetClassLoaderFromCurrentThread
- java.lang.Object
-
- org.eclipse.persistence.internal.security.PrivilegedGetClassLoaderFromCurrentThread
-
- All Implemented Interfaces:
java.security.PrivilegedExceptionAction<java.lang.ClassLoader>
public class PrivilegedGetClassLoaderFromCurrentThread extends java.lang.Object implements java.security.PrivilegedExceptionAction<java.lang.ClassLoader>
INTERNAL: Retrieve currentThread
contextClassLoader
with privileges enabled.- Since:
- 2.6.1
-
-
Constructor Summary
Constructors Constructor Description PrivilegedGetClassLoaderFromCurrentThread()
INTERNAL: Creates an instance of currentThread
contextClassLoader
getter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ClassLoader
run()
INTERNAL: Performs currentThread
contextClassLoader
retrieval.
-
-
-
Method Detail
-
run
public java.lang.ClassLoader run()
INTERNAL: Performs currentThread
contextClassLoader
retrieval. This method will be called byAccessController.doPrivileged(PrivilegedAction)
after enabling privileges.- Specified by:
run
in interfacejava.security.PrivilegedExceptionAction<java.lang.ClassLoader>
- Returns:
- The current
Thread
contextClassLoader
.
-
-