protected static interface AgentBuilder.Default.NativeMethodStrategy
Modifier and Type | Interface and Description |
---|---|
static class |
AgentBuilder.Default.NativeMethodStrategy.Disabled
A native method strategy that suffixes method names with a random suffix and disables native method rebasement.
|
static class |
AgentBuilder.Default.NativeMethodStrategy.ForPrefix
A native method strategy that prefixes method names with a fixed value for supporting rebasing of native methods.
|
Modifier and Type | Method and Description |
---|---|
String |
getPrefix()
Returns the method prefix if the strategy is enabled.
|
boolean |
isEnabled(Instrumentation instrumentation)
Determines if this strategy enables name prefixing for native methods.
|
MethodNameTransformer |
resolve()
Resolves the method name transformer for this strategy.
|
boolean isEnabled(Instrumentation instrumentation)
instrumentation
- The instrumentation used.true
if this strategy indicates that a native method prefix should be used.MethodNameTransformer resolve()
String getPrefix()
Copyright © 2014–2018. All rights reserved.