protected static class AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher extends Object implements AgentBuilder.InitializationStrategy.Dispatcher
AgentBuilder.InitializationStrategy.Dispatcher.LazyInitializer
Modifier | Constructor and Description |
---|---|
protected |
Dispatcher(int identification)
Creates a new dispatcher.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
apply(DynamicType.Builder<?> builder)
Transforms the instrumented type to implement an appropriate initialization strategy.
|
boolean |
equals(Object other) |
int |
hashCode() |
void |
register(String name,
ClassLoader classLoader,
AgentBuilder.InitializationStrategy.Dispatcher.LazyInitializer lazyInitializer)
Registers a loaded type initializer for a type name and class loader pair.
|
String |
toString() |
protected Dispatcher(int identification)
identification
- A random identification for the applied self-initialization.public DynamicType.Builder<?> apply(DynamicType.Builder<?> builder)
AgentBuilder.InitializationStrategy.Dispatcher
apply
in interface AgentBuilder.InitializationStrategy.Dispatcher
builder
- The builder which should implement the initialization strategy.builder
with the initialization strategy applied.public void register(String name, ClassLoader classLoader, AgentBuilder.InitializationStrategy.Dispatcher.LazyInitializer lazyInitializer)
AgentBuilder.InitializationStrategy.Dispatcher
register
in interface AgentBuilder.InitializationStrategy.Dispatcher
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.