Class ForceDynamicallyTypedAssignReturnedFactory

java.lang.Object
io.opentelemetry.javaagent.tooling.instrumentation.indy.ForceDynamicallyTypedAssignReturnedFactory
All Implemented Interfaces:
net.bytebuddy.asm.Advice.PostProcessor.Factory

public class ForceDynamicallyTypedAssignReturnedFactory extends Object implements net.bytebuddy.asm.Advice.PostProcessor.Factory
This factory is designed to wrap around Advice.PostProcessor.Factory and ensures that Assigner.Typing.DYNAMIC is used everywhere.

This helps by avoiding errors where the instrumented bytecode is suddenly unloadable due to incompatible assignments and preventing cluttering advice code annotations with the explicit typing.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.PostProcessor.Factory

    net.bytebuddy.asm.Advice.PostProcessor.Factory.Compound
  • Constructor Summary

    Constructors
    Constructor
    Description
    ForceDynamicallyTypedAssignReturnedFactory(net.bytebuddy.asm.Advice.PostProcessor.Factory delegate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.bytebuddy.asm.Advice.PostProcessor
    make(List<? extends net.bytebuddy.description.annotation.AnnotationDescription> methodAnnotations, net.bytebuddy.description.type.TypeDescription returnType, boolean exit)
     

    Methods inherited from class java.lang.Object

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

    • ForceDynamicallyTypedAssignReturnedFactory

      public ForceDynamicallyTypedAssignReturnedFactory(net.bytebuddy.asm.Advice.PostProcessor.Factory delegate)
  • Method Details

    • make

      public net.bytebuddy.asm.Advice.PostProcessor make(List<? extends net.bytebuddy.description.annotation.AnnotationDescription> methodAnnotations, net.bytebuddy.description.type.TypeDescription returnType, boolean exit)
      Specified by:
      make in interface net.bytebuddy.asm.Advice.PostProcessor.Factory