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
ConstructorsConstructorDescriptionForceDynamicallyTypedAssignReturnedFactory(net.bytebuddy.asm.Advice.PostProcessor.Factory delegate) -
Method Summary
-
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:
makein interfacenet.bytebuddy.asm.Advice.PostProcessor.Factory
-