protected static class AgentBuilder.InitializationStrategy.SelfInjection.Split.Dispatcher extends AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher
AgentBuilder.InitializationStrategy.SelfInjection.Split
strategy.AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.InjectingInitializer
identification, nexusAccessor
Modifier | Constructor and Description |
---|---|
protected |
Dispatcher(NexusAccessor nexusAccessor,
int identification)
Creates a new split dispatcher.
|
Modifier and Type | Method and Description |
---|---|
void |
register(DynamicType dynamicType,
ClassLoader classLoader,
ProtectionDomain protectionDomain,
AgentBuilder.InjectionStrategy injectionStrategy)
Registers a dynamic type for initialization and/or begins the initialization process.
|
apply
protected Dispatcher(NexusAccessor nexusAccessor, int identification)
nexusAccessor
- The nexus accessor to use.identification
- A random identification for the applied self-initialization.public void register(DynamicType dynamicType, @MaybeNull ClassLoader classLoader, @MaybeNull ProtectionDomain protectionDomain, AgentBuilder.InjectionStrategy injectionStrategy)
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.Copyright © 2014–2025. All rights reserved.