@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.InstallationListener.Compound extends Object implements AgentBuilder.InstallationListener
AgentBuilder.InstallationListener.Adapter, AgentBuilder.InstallationListener.Compound, AgentBuilder.InstallationListener.ErrorSuppressing, AgentBuilder.InstallationListener.NoOp, AgentBuilder.InstallationListener.StreamWritingSUPPRESS_ERROR| Constructor and Description |
|---|
Compound(AgentBuilder.InstallationListener... installationListener)
Creates a new compound listener.
|
Compound(List<? extends AgentBuilder.InstallationListener> installationListeners)
Creates a new compound listener.
|
| 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.
|
public Compound(AgentBuilder.InstallationListener... installationListener)
installationListener - The installation listeners to notify.public Compound(List<? extends AgentBuilder.InstallationListener> installationListeners)
installationListeners - The installation listeners to notify.public void onBeforeInstall(Instrumentation instrumentation, ResettableClassFileTransformer classFileTransformer)
onBeforeInstall in interface AgentBuilder.InstallationListenerinstrumentation - 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.onError(Instrumentation, ResettableClassFileTransformer, Throwable).onInstall in interface AgentBuilder.InstallationListenerinstrumentation - 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.onInstall(Instrumentation, ResettableClassFileTransformer).onError in interface AgentBuilder.InstallationListenerinstrumentation - 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)
onReset in interface AgentBuilder.InstallationListenerinstrumentation - The instrumentation on which the class file transformer is installed.classFileTransformer - The class file transformer that is being installed.Copyright © 2014–2019. All rights reserved.