Class AgentBuilder.InitializationStrategy.SelfInjection.Eager.Dispatcher

java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher
net.bytebuddy.agent.builder.AgentBuilder.InitializationStrategy.SelfInjection.Eager.Dispatcher
All Implemented Interfaces:
AgentBuilder.InitializationStrategy.Dispatcher
Enclosing class:
AgentBuilder.InitializationStrategy.SelfInjection.Eager

protected static class AgentBuilder.InitializationStrategy.SelfInjection.Eager.Dispatcher extends AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher
  • Constructor Details

    • Dispatcher

      protected Dispatcher(NexusAccessor nexusAccessor, int identification)
      Creates a new eager dispatcher.
      Parameters:
      nexusAccessor - The nexus accessor to use.
      identification - A random identification for the applied self-initialization.
  • Method Details

    • register

      public void register(DynamicType dynamicType, @MaybeNull ClassLoader classLoader, @MaybeNull ProtectionDomain protectionDomain, AgentBuilder.InjectionStrategy injectionStrategy)
      Registers a dynamic type for initialization and/or begins the initialization process.
      Parameters:
      dynamicType - The dynamic type that is created.
      classLoader - The class loader of the dynamic type which can be null to represent the bootstrap class loader.
      protectionDomain - The instrumented type's protection domain or null if no protection domain is available.
      injectionStrategy - The injection strategy to use.