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