Class ForwardIndyAdviceTransformer

java.lang.Object
io.opentelemetry.javaagent.tooling.instrumentation.indy.ForwardIndyAdviceTransformer
All Implemented Interfaces:
net.bytebuddy.agent.builder.AgentBuilder.Transformer

public class ForwardIndyAdviceTransformer extends Object implements net.bytebuddy.agent.builder.AgentBuilder.Transformer
Replaces INVOKEDYNAMIC instructions used for invoking advice with INVOKESTATIC instructions in a helper class that contains the original INVOKEDYNAMIC instruction in classes that do not support INVOKEDYNAMIC (i.e. pre Java 7 class files).
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.Transformer

    net.bytebuddy.agent.builder.AgentBuilder.Transformer.ForAdvice, net.bytebuddy.agent.builder.AgentBuilder.Transformer.ForBuildPlugin
  • Constructor Summary

    Constructors
    Constructor
    Description
    ForwardIndyAdviceTransformer(io.opentelemetry.javaagent.tooling.HelperInjector helperInjector)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.bytebuddy.dynamic.DynamicType.Builder<?>
    transform(net.bytebuddy.dynamic.DynamicType.Builder<?> builder, net.bytebuddy.description.type.TypeDescription typeDescription, ClassLoader classLoader, net.bytebuddy.utility.JavaModule javaModule, ProtectionDomain protectionDomain)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ForwardIndyAdviceTransformer

      public ForwardIndyAdviceTransformer(io.opentelemetry.javaagent.tooling.HelperInjector helperInjector)
  • Method Details

    • transform

      public net.bytebuddy.dynamic.DynamicType.Builder<?> transform(net.bytebuddy.dynamic.DynamicType.Builder<?> builder, net.bytebuddy.description.type.TypeDescription typeDescription, ClassLoader classLoader, net.bytebuddy.utility.JavaModule javaModule, ProtectionDomain protectionDomain)
      Specified by:
      transform in interface net.bytebuddy.agent.builder.AgentBuilder.Transformer