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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrun()INTERNAL: Performs currentThreadcontextClassLoaderretrieval.
-
Constructor Details
-
PrivilegedGetClassLoaderFromCurrentThread
public PrivilegedGetClassLoaderFromCurrentThread()INTERNAL: Creates an instance of currentThreadcontextClassLoadergetter.
-
-
Method Details
-
run
INTERNAL: Performs currentThreadcontextClassLoaderretrieval. This method will be called byAccessController.doPrivileged(PrivilegedAction)after enabling privileges.- Specified by:
runin interfacePrivilegedExceptionAction<ClassLoader>- Returns:
- The current
ThreadcontextClassLoader.
-