Enum AgentBuilder.Default.Dispatcher.ForLegacyVm

    • Constructor Detail

      • ForLegacyVm

        private ForLegacyVm()
    • Method Detail

      • values

        public static AgentBuilder.Default.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 (AgentBuilder.Default.Dispatcher.ForLegacyVm c : AgentBuilder.Default.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 AgentBuilder.Default.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
      • isNativeMethodPrefixSupported

        public boolean isNativeMethodPrefixSupported​(java.lang.instrument.Instrumentation instrumentation)
        Returns true if the supplied instrumentation instance supports setting native method prefixes.
        Specified by:
        isNativeMethodPrefixSupported in interface AgentBuilder.Default.Dispatcher
        Parameters:
        instrumentation - The instrumentation instance to use.
        Returns:
        true if the supplied instrumentation instance supports native method prefixes.
      • setNativeMethodPrefix

        public void setNativeMethodPrefix​(java.lang.instrument.Instrumentation instrumentation,
                                          java.lang.instrument.ClassFileTransformer classFileTransformer,
                                          java.lang.String prefix)
        Sets a native method prefix for the supplied class file transformer.
        Specified by:
        setNativeMethodPrefix in interface AgentBuilder.Default.Dispatcher
        Parameters:
        instrumentation - The instrumentation instance to use.
        classFileTransformer - The class file transformer for which the prefix is set.
        prefix - The prefix to set.
      • addTransformer

        public void addTransformer​(java.lang.instrument.Instrumentation instrumentation,
                                   java.lang.instrument.ClassFileTransformer classFileTransformer,
                                   boolean canRetransform)
        Adds a class file transformer to an instrumentation instance.
        Specified by:
        addTransformer in interface AgentBuilder.Default.Dispatcher
        Parameters:
        instrumentation - The instrumentation instance to use for registration.
        classFileTransformer - The class file transformer to register.
        canRetransform - true if the class file transformer is capable of retransformation.