@HashCodeAndEqualsPlugin.Enhance protected static class AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.InjectingInitializer extends java.lang.Object implements LoadedTypeInitializer
LoadedTypeInitializer.Compound, LoadedTypeInitializer.ForStaticField, LoadedTypeInitializer.NoOp
Modifier and Type | Field and Description |
---|---|
private ClassInjector |
classInjector
The class injector to use.
|
private TypeDescription |
instrumentedType
The instrumented type.
|
private java.util.Map<TypeDescription,LoadedTypeInitializer> |
loadedTypeInitializers
The instrumented types and auxiliary types mapped to their loaded type initializers.
|
private java.util.Map<TypeDescription,byte[]> |
rawAuxiliaryTypes
The auxiliary types mapped to their class file representation.
|
Modifier | Constructor and Description |
---|---|
protected |
InjectingInitializer(TypeDescription instrumentedType,
java.util.Map<TypeDescription,byte[]> rawAuxiliaryTypes,
java.util.Map<TypeDescription,LoadedTypeInitializer> loadedTypeInitializers,
ClassInjector classInjector)
Creates a new injection initializer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAlive()
Indicates if this initializer is alive and needs to be invoked.
|
void |
onLoad(java.lang.Class<?> type)
Callback that is invoked on the creation of an instrumented type.
|
private final TypeDescription instrumentedType
private final java.util.Map<TypeDescription,byte[]> rawAuxiliaryTypes
private final java.util.Map<TypeDescription,LoadedTypeInitializer> loadedTypeInitializers
private final ClassInjector classInjector
protected InjectingInitializer(TypeDescription instrumentedType, java.util.Map<TypeDescription,byte[]> rawAuxiliaryTypes, java.util.Map<TypeDescription,LoadedTypeInitializer> loadedTypeInitializers, ClassInjector classInjector)
instrumentedType
- The instrumented type.rawAuxiliaryTypes
- The auxiliary types mapped to their class file representation.loadedTypeInitializers
- The instrumented types and auxiliary types mapped to their loaded type initializers.classInjector
- The class injector to use.public void onLoad(java.lang.Class<?> type)
onLoad
in interface LoadedTypeInitializer
type
- The manifestation of the instrumented type.public boolean isAlive()
isAlive
in interface LoadedTypeInitializer
true
if this initializer is alive.