Class ModuleUtils


  • public class ModuleUtils
    extends java.lang.Object
    Utility for dealing with module system specifics.
    • Constructor Summary

      Constructors 
      Constructor Description
      ModuleUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.reflect.Method getRedefineModuleMethod()  
      static void openUnsafePackage​(java.lang.instrument.Instrumentation instrumentation)
      Allows the agent's module to access the Unsafe class when running on JDK 11 or newer.
      • Methods inherited from class java.lang.Object

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

      • ModuleUtils

        public ModuleUtils()
    • Method Detail

      • openUnsafePackage

        public static void openUnsafePackage​(java.lang.instrument.Instrumentation instrumentation)
        Allows the agent's module to access the Unsafe class when running on JDK 11 or newer.
      • getRedefineModuleMethod

        private static java.lang.reflect.Method getRedefineModuleMethod()