Class 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 current Thread context ClassLoader with privileges enabled.
    Since:
    2.6.1
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.ClassLoader run()
      INTERNAL: Performs current Thread context ClassLoader retrieval.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PrivilegedGetClassLoaderFromCurrentThread

        public PrivilegedGetClassLoaderFromCurrentThread()
        INTERNAL: Creates an instance of current Thread context ClassLoader getter.
        Parameters:
        key - The name of the System property.
    • Method Detail

      • run

        public java.lang.ClassLoader run()
        INTERNAL: Performs current Thread context ClassLoader retrieval. This method will be called by AccessController.doPrivileged(PrivilegedAction) after enabling privileges.
        Specified by:
        run in interface java.security.PrivilegedExceptionAction<java.lang.ClassLoader>
        Returns:
        The current Thread context ClassLoader.