@JavaDispatcher.Proxied(value="java.lang.instrument.Instrumentation") protected static interface AgentBuilder.Default.Dispatcher
Modifier and Type | Method and Description |
---|---|
void |
addTransformer(Instrumentation instrumentation,
ClassFileTransformer classFileTransformer,
boolean canRetransform)
Adds a class file transformer to an instrumentation instance.
|
boolean |
isNativeMethodPrefixSupported(Instrumentation instrumentation)
Returns
true if the supplied instrumentation instance supports setting native method prefixes. |
void |
setNativeMethodPrefix(Instrumentation instrumentation,
ClassFileTransformer classFileTransformer,
String prefix)
Sets a native method prefix for the supplied class file transformer.
|
@JavaDispatcher.Defaults boolean isNativeMethodPrefixSupported(Instrumentation instrumentation)
true
if the supplied instrumentation instance supports setting native method prefixes.instrumentation
- The instrumentation instance to use.true
if the supplied instrumentation instance supports native method prefixes.void setNativeMethodPrefix(Instrumentation instrumentation, ClassFileTransformer classFileTransformer, String prefix)
instrumentation
- The instrumentation instance to use.classFileTransformer
- The class file transformer for which the prefix is set.prefix
- The prefix to set.void addTransformer(Instrumentation instrumentation, ClassFileTransformer classFileTransformer, boolean canRetransform)
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.Copyright © 2014–2023. All rights reserved.