public static interface AgentBuilder.InitializationStrategy.Dispatcher
| Modifier and Type | Method and Description |
|---|---|
DynamicType.Builder<?> |
apply(DynamicType.Builder<?> builder)
Transforms the instrumented type to implement an appropriate initialization strategy.
|
void |
register(DynamicType dynamicType,
ClassLoader classLoader,
ProtectionDomain protectionDomain,
AgentBuilder.InjectionStrategy injectionStrategy)
Registers a dynamic type for initialization and/or begins the initialization process.
|
DynamicType.Builder<?> apply(DynamicType.Builder<?> builder)
builder - The builder which should implement the initialization strategy.builder with the initialization strategy applied.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–2024. All rights reserved.