public static interface AgentBuilder.InitializationStrategy.Dispatcher
Modifier and Type | Interface and Description |
---|---|
static interface |
AgentBuilder.InitializationStrategy.Dispatcher.InjectorFactory
A factory for creating a
ClassInjector only if it is required. |
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,
AgentBuilder.InitializationStrategy.Dispatcher.InjectorFactory injectorFactory)
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, ClassLoader classLoader, AgentBuilder.InitializationStrategy.Dispatcher.InjectorFactory injectorFactory)
dynamicType
- The dynamic type that is created.classLoader
- The class loader of the dynamic type.injectorFactory
- The injector factoryCopyright © 2014–2019. All rights reserved.