public class BridgeUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.objectweb.asm.Type |
AGENT_BRIDGE_AGENT_TYPE |
static java.lang.String |
AGENT_BRIDGE_GET_AGENT_METHOD |
static org.objectweb.asm.Type |
AGENT_BRIDGE_TYPE |
static java.lang.String |
CURRENT_TRANSACTION_FIELD_NAME
References to
Transaction#CURRENT get rewritten in the final pass in InstrumentationContextManager . |
static java.lang.String |
CURRENT_TX_OR_NULL_FIELD_NAME |
static org.objectweb.asm.Type |
DATASTORE_METRICS_TYPE |
static java.lang.String |
GET_TRACED_METHOD_METHOD_NAME |
static java.lang.String |
GET_TRANSACTION_METHOD_NAME |
static java.lang.String |
INSTRUMENTATION_FIELD_NAME
AgentBridge.instrumentation |
static org.objectweb.asm.Type |
INSTRUMENTATION_TYPE |
static org.objectweb.asm.Type |
INTERNAL_AGENT_TYPE |
static org.objectweb.asm.Type |
NEW_RELIC_API_TYPE |
static java.lang.String |
PRIVATE_API_FIELD_NAME
AgentBridge.privateApi |
static org.objectweb.asm.Type |
PRIVATE_API_TYPE |
static org.objectweb.asm.Type |
PUBLIC_AGENT_TYPE |
static java.lang.String |
PUBLIC_API_FIELD_NAME |
static org.objectweb.asm.Type |
PUBLIC_API_TYPE |
static org.objectweb.asm.Type |
TRACED_METHOD_TYPE |
static org.objectweb.asm.Type |
TRANSACTION_TYPE |
static org.objectweb.asm.Type |
WEAVER_TYPE |
Constructor and Description |
---|
BridgeUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
getCurrentTransaction(org.objectweb.asm.MethodVisitor mv)
Generates bytecode instructions to load the current transaction through
Transaction#CURRENT . |
static void |
getCurrentTransactionOrNull(org.objectweb.asm.MethodVisitor mv) |
static com.newrelic.api.agent.Logger |
getLogger(org.objectweb.asm.commons.GeneratorAdapter mv)
Injects the instructions to load the logger instance and returns a proxy that can be used to invoke methods on
that instance.
|
static BytecodeGenProxyBuilder<com.newrelic.api.agent.Logger> |
getLoggerBuilder(org.objectweb.asm.commons.GeneratorAdapter mv,
boolean loadArgs) |
static boolean |
isAgentType(java.lang.String owner) |
static boolean |
isTracedMethodType(java.lang.String owner) |
static boolean |
isTransactionType(java.lang.String owner) |
static void |
loadLogger(org.objectweb.asm.commons.GeneratorAdapter mv)
Load the logger instance onto the stack.
|
public static final org.objectweb.asm.Type NEW_RELIC_API_TYPE
public static final org.objectweb.asm.Type PRIVATE_API_TYPE
public static final org.objectweb.asm.Type PUBLIC_API_TYPE
public static final org.objectweb.asm.Type AGENT_BRIDGE_TYPE
public static final org.objectweb.asm.Type TRACED_METHOD_TYPE
public static final org.objectweb.asm.Type PUBLIC_AGENT_TYPE
public static final org.objectweb.asm.Type INTERNAL_AGENT_TYPE
public static final org.objectweb.asm.Type INSTRUMENTATION_TYPE
public static final org.objectweb.asm.Type TRANSACTION_TYPE
public static final org.objectweb.asm.Type DATASTORE_METRICS_TYPE
public static final org.objectweb.asm.Type AGENT_BRIDGE_AGENT_TYPE
public static final java.lang.String PRIVATE_API_FIELD_NAME
AgentBridge.privateApi
public static final java.lang.String PUBLIC_API_FIELD_NAME
public static final java.lang.String INSTRUMENTATION_FIELD_NAME
AgentBridge.instrumentation
public static final java.lang.String GET_TRACED_METHOD_METHOD_NAME
public static final java.lang.String GET_TRANSACTION_METHOD_NAME
public static final java.lang.String AGENT_BRIDGE_GET_AGENT_METHOD
public static final org.objectweb.asm.Type WEAVER_TYPE
public static final java.lang.String CURRENT_TRANSACTION_FIELD_NAME
Transaction#CURRENT
get rewritten in the final pass in InstrumentationContextManager
.
This field was removed, but we still rewrite references to it to maintain backward compatibility.CurrentTransactionRewriter
,
Constant Field Valuespublic static final java.lang.String CURRENT_TX_OR_NULL_FIELD_NAME
public static void loadLogger(org.objectweb.asm.commons.GeneratorAdapter mv)
public static BytecodeGenProxyBuilder<com.newrelic.api.agent.Logger> getLoggerBuilder(org.objectweb.asm.commons.GeneratorAdapter mv, boolean loadArgs)
public static com.newrelic.api.agent.Logger getLogger(org.objectweb.asm.commons.GeneratorAdapter mv)
public static void getCurrentTransaction(org.objectweb.asm.MethodVisitor mv)
Transaction#CURRENT
.public static void getCurrentTransactionOrNull(org.objectweb.asm.MethodVisitor mv)
public static boolean isAgentType(java.lang.String owner)
public static boolean isTracedMethodType(java.lang.String owner)
public static boolean isTransactionType(java.lang.String owner)