public static enum AgentBuilder.InstallationListener.ErrorSuppressing extends Enum<AgentBuilder.InstallationListener.ErrorSuppressing> implements AgentBuilder.InstallationListener
AgentBuilder.InstallationListener.Adapter, AgentBuilder.InstallationListener.Compound, AgentBuilder.InstallationListener.ErrorSuppressing, AgentBuilder.InstallationListener.NoOp, AgentBuilder.InstallationListener.StreamWriting
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
SUPPRESS_ERROR
Modifier and Type | Method and Description |
---|---|
void |
onBeforeInstall(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked prior to the installation of a class file transformer.
|
Throwable |
onError(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer,
Throwable throwable)
Invoked if an installation causes an error.
|
void |
onInstall(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked upon the successful installation of a class file transformer.
|
void |
onReset(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked if an installation is reset.
|
static AgentBuilder.InstallationListener.ErrorSuppressing |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.InstallationListener.ErrorSuppressing[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.InstallationListener.ErrorSuppressing INSTANCE
public static AgentBuilder.InstallationListener.ErrorSuppressing[] values()
for (AgentBuilder.InstallationListener.ErrorSuppressing c : AgentBuilder.InstallationListener.ErrorSuppressing.values()) System.out.println(c);
public static AgentBuilder.InstallationListener.ErrorSuppressing valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void onBeforeInstall(Instrumentation instrumentation, ResettableClassFileTransformer classFileTransformer)
AgentBuilder.InstallationListener
onBeforeInstall
in interface AgentBuilder.InstallationListener
instrumentation
- The instrumentation on which the class file transformer is installed.classFileTransformer
- The class file transformer that is being installed.public void onInstall(Instrumentation instrumentation, ResettableClassFileTransformer classFileTransformer)
AgentBuilder.InstallationListener
AgentBuilder.InstallationListener.onError(Instrumentation, ResettableClassFileTransformer, Throwable)
.onInstall
in interface AgentBuilder.InstallationListener
instrumentation
- The instrumentation on which the class file transformer is installed.classFileTransformer
- The class file transformer that is being installed.public Throwable onError(Instrumentation instrumentation, ResettableClassFileTransformer classFileTransformer, Throwable throwable)
AgentBuilder.InstallationListener
AgentBuilder.InstallationListener.onInstall(Instrumentation, ResettableClassFileTransformer)
.onError
in interface AgentBuilder.InstallationListener
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.null
if the error is handled. Any subsequent listeners are not called if the exception is handled.public void onReset(Instrumentation instrumentation, ResettableClassFileTransformer classFileTransformer)
AgentBuilder.InstallationListener
onReset
in interface AgentBuilder.InstallationListener
instrumentation
- The instrumentation on which the class file transformer is installed.classFileTransformer
- The class file transformer that is being installed.Copyright © 2014–2018. All rights reserved.