Class AgentBuilder.InitializationStrategy.SelfInjection.Eager.Dispatcher

    • Constructor Detail

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

      • register

        public void register​(DynamicType dynamicType,
                             java.lang.ClassLoader classLoader,
                             java.security.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.