Enum AgentBuilder.PatchMode.Handler.NoOp

    • Constructor Detail

      • NoOp

        private NoOp()
    • Method Detail

      • values

        public static AgentBuilder.PatchMode.Handler.NoOp[] 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.PatchMode.Handler.NoOp c : AgentBuilder.PatchMode.Handler.NoOp.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.PatchMode.Handler.NoOp 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
      • onBeforeRegistration

        public void onBeforeRegistration​(java.lang.instrument.Instrumentation instrumentation)
        Invoked prior to registering a class file transformer.
        Specified by:
        onBeforeRegistration in interface AgentBuilder.PatchMode.Handler
        Parameters:
        instrumentation - The instrumentation to use.
      • onRegistration

        public boolean onRegistration​(ResettableClassFileTransformer classFileTransformer)
        Invoked upon registering a class file transformer.
        Specified by:
        onRegistration in interface AgentBuilder.PatchMode.Handler
        Parameters:
        classFileTransformer - The class file transformer to register.
        Returns:
        true if a regular registration should be applied to the transformer.
      • onAfterRegistration

        public void onAfterRegistration​(java.lang.instrument.Instrumentation instrumentation)
        Invoked right after registering a class file transformer.
        Specified by:
        onAfterRegistration in interface AgentBuilder.PatchMode.Handler
        Parameters:
        instrumentation - The instrumentation to use.