Class ExposeAgentBootstrapListener
java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.Listener.Adapter
io.opentelemetry.javaagent.tooling.ExposeAgentBootstrapListener
- All Implemented Interfaces:
net.bytebuddy.agent.builder.AgentBuilder.Listener
public class ExposeAgentBootstrapListener
extends net.bytebuddy.agent.builder.AgentBuilder.Listener.Adapter
Ensures that transformed classes can read agent classes in bootstrap class loader and injected
classes in unnamed module of their class loader.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.Listener
net.bytebuddy.agent.builder.AgentBuilder.Listener.Adapter, net.bytebuddy.agent.builder.AgentBuilder.Listener.Compound, net.bytebuddy.agent.builder.AgentBuilder.Listener.Filtering, net.bytebuddy.agent.builder.AgentBuilder.Listener.ModuleReadEdgeCompleting, net.bytebuddy.agent.builder.AgentBuilder.Listener.NoOp, net.bytebuddy.agent.builder.AgentBuilder.Listener.StreamWriting, net.bytebuddy.agent.builder.AgentBuilder.Listener.WithErrorsOnly, net.bytebuddy.agent.builder.AgentBuilder.Listener.WithTransformationsOnly -
Field Summary
Fields inherited from interface net.bytebuddy.agent.builder.AgentBuilder.Listener
LOADED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonTransformation(net.bytebuddy.description.type.TypeDescription typeDescription, ClassLoader classLoader, net.bytebuddy.utility.JavaModule javaModule, boolean b, net.bytebuddy.dynamic.DynamicType dynamicType) Methods inherited from class net.bytebuddy.agent.builder.AgentBuilder.Listener.Adapter
onComplete, onDiscovery, onError, onIgnored
-
Constructor Details
-
ExposeAgentBootstrapListener
-
-
Method Details
-
onTransformation
public void onTransformation(net.bytebuddy.description.type.TypeDescription typeDescription, ClassLoader classLoader, net.bytebuddy.utility.JavaModule javaModule, boolean b, net.bytebuddy.dynamic.DynamicType dynamicType) - Specified by:
onTransformationin interfacenet.bytebuddy.agent.builder.AgentBuilder.Listener- Overrides:
onTransformationin classnet.bytebuddy.agent.builder.AgentBuilder.Listener.Adapter
-