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 |
---|---|
boolean |
equals(Object other) |
String |
getPrefix()
Returns the method prefix if the strategy is enabled.
|
int |
hashCode() |
boolean |
isEnabled(Instrumentation instrumentation)
Determines if this strategy enables name prefixing for native methods.
|
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.
|
String |
toString() |
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()
AgentBuilder.Default.NativeMethodStrategy
resolve
in interface AgentBuilder.Default.NativeMethodStrategy
public boolean isEnabled(Instrumentation instrumentation)
AgentBuilder.Default.NativeMethodStrategy
isEnabled
in interface AgentBuilder.Default.NativeMethodStrategy
instrumentation
- The instrumentation used.true
if this strategy indicates that a native method prefix should be used.public String getPrefix()
AgentBuilder.Default.NativeMethodStrategy
getPrefix
in interface AgentBuilder.Default.NativeMethodStrategy
Copyright © 2014–2016. All rights reserved.