Class ModuleUtilImpl

  • All Implemented Interfaces:
    ModuleUtil

    public class ModuleUtilImpl
    extends java.lang.Object
    implements ModuleUtil
    • Constructor Summary

      Constructors 
      Constructor Description
      ModuleUtilImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void redefineModules​(java.lang.instrument.Instrumentation inst, java.lang.ClassLoader agentClassLoader)
      There is no need to modify "modules" in Java < 9 since they didn't exist, so this is a no-op.
      • Methods inherited from class java.lang.Object

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

      • ModuleUtilImpl

        public ModuleUtilImpl()
    • Method Detail

      • redefineModules

        public void redefineModules​(java.lang.instrument.Instrumentation inst,
                                    java.lang.ClassLoader agentClassLoader)
        There is no need to modify "modules" in Java < 9 since they didn't exist, so this is a no-op.
        Specified by:
        redefineModules in interface ModuleUtil
        Parameters:
        inst - The premain Instrumentation instance
        agentClassLoader - The classloader which is targeted to load agent classes; it is this classloader's unnamed module that will have access to the necessary packages.