public static interface AgentBuilder.InitializationStrategy.Dispatcher
Modifier and Type | Interface and Description |
---|---|
static interface |
AgentBuilder.InitializationStrategy.Dispatcher.LazyInitializer
A constructor for creating a
LoadedTypeInitializer if 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(String name,
ClassLoader classLoader,
AgentBuilder.InitializationStrategy.Dispatcher.LazyInitializer lazyInitializer)
Registers a loaded type initializer for a type name and class loader pair.
|
DynamicType.Builder<?> apply(DynamicType.Builder<?> builder)
builder
- The builder which should implement the initialization strategy.builder
with the initialization strategy applied.void register(String name, ClassLoader classLoader, AgentBuilder.InitializationStrategy.Dispatcher.LazyInitializer lazyInitializer)
name
- The name of the type for which the loaded type initializer is to be
registered.classLoader
- The class loader of the instrumented type. Might be null
if
this class loader represents the bootstrap class loader.lazyInitializer
- A constructor for a LoadedTypeInitializer
that fully initializes
the created type and its potential auxiliary types.Copyright © 2014–2015. All rights reserved.