Enum ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm

    • Constructor Detail

      • ForLegacyVm

        private ForLegacyVm()
    • Method Detail

      • values

        public static ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm c : ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • appendToBootstrapClassLoaderSearch

        public void appendToBootstrapClassLoaderSearch​(java.lang.instrument.Instrumentation instrumentation,
                                                       java.util.jar.JarFile jarFile)
        Appends a jar file to the bootstrap class loader.
        Specified by:
        appendToBootstrapClassLoaderSearch in interface ClassInjector.UsingInstrumentation.Dispatcher
        Parameters:
        instrumentation - The instrumentation instance to interact with.
        jarFile - The jar file to append.
      • appendToSystemClassLoaderSearch

        public void appendToSystemClassLoaderSearch​(java.lang.instrument.Instrumentation instrumentation,
                                                    java.util.jar.JarFile jarFile)
        Appends a jar file to the system class loader.
        Specified by:
        appendToSystemClassLoaderSearch in interface ClassInjector.UsingInstrumentation.Dispatcher
        Parameters:
        instrumentation - The instrumentation instance to interact with.
        jarFile - The jar file to append.