Class 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 Detail

      • ExposeAgentBootstrapListener

        public ExposeAgentBootstrapListener​(Instrumentation instrumentation)
    • Method Detail

      • 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:
        onTransformation in interface net.bytebuddy.agent.builder.AgentBuilder.Listener
        Overrides:
        onTransformation in class net.bytebuddy.agent.builder.AgentBuilder.Listener.Adapter