Class ClassFileLocator.ForInstrumentation.ClassLoadingDelegate.ForDelegatingClassLoader

    • Constructor Detail

      • ForDelegatingClassLoader

        protected ForDelegatingClassLoader​(java.lang.ClassLoader classLoader)
        Creates a class loading delegate for a delegating class loader.
        Parameters:
        classLoader - The delegating class loader.
    • Method Detail

      • doPrivileged

        @Enhance
        private static <T> T doPrivileged​(java.security.PrivilegedAction<T> action)
        A proxy for java.security.AccessController#doPrivileged that is activated if available.
        Type Parameters:
        T - The type of the action's resolved value.
        Parameters:
        action - The action to execute from a privileged context.
        Returns:
        The action's resolved value.
      • isDelegating

        protected static boolean isDelegating​(java.lang.ClassLoader classLoader)
        Checks if a class loader is a delegating class loader.
        Parameters:
        classLoader - The class loader to inspect.
        Returns:
        true if the class loader is a delegating class loader.