Enum AgentBuilder.InstallationListener.NoOp

    • Constructor Detail

      • NoOp

        private NoOp()
    • Method Detail

      • values

        public static AgentBuilder.InstallationListener.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.InstallationListener.NoOp c : AgentBuilder.InstallationListener.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.InstallationListener.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
      • onBeforeInstall

        public void onBeforeInstall​(java.lang.instrument.Instrumentation instrumentation,
                                    ResettableClassFileTransformer classFileTransformer)
        Invoked prior to the installation of a class file transformer.
        Specified by:
        onBeforeInstall in interface AgentBuilder.InstallationListener
        Parameters:
        instrumentation - The instrumentation on which the class file transformer is installed.
        classFileTransformer - The class file transformer that is being installed.
      • onError

        public java.lang.Throwable onError​(java.lang.instrument.Instrumentation instrumentation,
                                           ResettableClassFileTransformer classFileTransformer,
                                           java.lang.Throwable throwable)
        Invoked if an installation causes an error. The listener has an opportunity to handle the error. This method is invoked prior to AgentBuilder.InstallationListener.onInstall(Instrumentation, ResettableClassFileTransformer).
        Specified by:
        onError in interface AgentBuilder.InstallationListener
        Parameters:
        instrumentation - The instrumentation on which the class file transformer is installed.
        classFileTransformer - The class file transformer that is being installed.
        throwable - The throwable that causes the error.
        Returns:
        The error to propagate or null if the error is handled. Any subsequent listeners are not called if the exception is handled.
      • onReset

        public void onReset​(java.lang.instrument.Instrumentation instrumentation,
                            ResettableClassFileTransformer classFileTransformer)
        Invoked if an installation is reset.
        Specified by:
        onReset in interface AgentBuilder.InstallationListener
        Parameters:
        instrumentation - The instrumentation on which the class file transformer is installed.
        classFileTransformer - The class file transformer that is being installed.
      • onBeforeWarmUp

        public void onBeforeWarmUp​(java.util.Set<java.lang.Class<?>> types,
                                   ResettableClassFileTransformer classFileTransformer)
        Invoked before a warump is executed.
        Specified by:
        onBeforeWarmUp in interface AgentBuilder.InstallationListener
        Parameters:
        types - The types that are used for the warmup.
        classFileTransformer - The class file transformer that is warmed up.
      • onWarmUpError

        public void onWarmUpError​(java.lang.Class<?> type,
                                  ResettableClassFileTransformer classFileTransformer,
                                  java.lang.Throwable throwable)
        Invoked when a class yields an unexpected error that is not catched by the listener.
        Specified by:
        onWarmUpError in interface AgentBuilder.InstallationListener
        Parameters:
        type - The type that caused the error.
        classFileTransformer - The class file transformer that is warmed up.
        throwable - The throwable that represents the error.
      • onAfterWarmUp

        public void onAfterWarmUp​(java.util.Set<java.lang.Class<?>> types,
                                  ResettableClassFileTransformer classFileTransformer,
                                  boolean transformed)
        Invoked after a warump is executed.
        Specified by:
        onAfterWarmUp in interface AgentBuilder.InstallationListener
        Parameters:
        types - The types that are used for the warmup.
        classFileTransformer - The class file transformer that is warmed up.
        transformed - true if at least one class caused an actual transformation.