@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.Default.NativeMethodStrategy.ForPrefix extends Object implements AgentBuilder.Default.NativeMethodStrategy
AgentBuilder.Default.NativeMethodStrategy.Disabled, AgentBuilder.Default.NativeMethodStrategy.ForPrefix
Modifier | Constructor and Description |
---|---|
protected |
ForPrefix(String prefix)
Creates a new name prefixing native method strategy.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(Instrumentation instrumentation,
ClassFileTransformer classFileTransformer)
Applies this native method strategy.
|
protected static AgentBuilder.Default.NativeMethodStrategy |
of(String prefix)
Creates a new native method strategy for prefixing method names.
|
MethodNameTransformer |
resolve()
Resolves the method name transformer for this strategy.
|
protected ForPrefix(String prefix)
prefix
- The method name prefix.protected static AgentBuilder.Default.NativeMethodStrategy of(String prefix)
prefix
- The method name prefix.public MethodNameTransformer resolve()
resolve
in interface AgentBuilder.Default.NativeMethodStrategy
public void apply(Instrumentation instrumentation, ClassFileTransformer classFileTransformer)
apply
in interface AgentBuilder.Default.NativeMethodStrategy
instrumentation
- The instrumentation to apply this strategy upon.classFileTransformer
- The class file transformer being registered.Copyright © 2014–2024. All rights reserved.