protected static class AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.InjectingInitializer extends Object implements LoadedTypeInitializer
LoadedTypeInitializer.Compound, LoadedTypeInitializer.ForStaticField, LoadedTypeInitializer.NoOp| Modifier | Constructor and Description |
|---|---|
protected |
InjectingInitializer(TypeDescription instrumentedType,
Map<TypeDescription,byte[]> rawAuxiliaryTypes,
Map<TypeDescription,LoadedTypeInitializer> loadedTypeInitializers,
ClassInjector classInjector)
Creates a new injection initializer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isAlive()
Indicates if this initializer is alive and needs to be invoked.
|
void |
onLoad(Class<?> type)
Callback that is invoked on the creation of an instrumented type.
|
String |
toString() |
protected InjectingInitializer(TypeDescription instrumentedType, Map<TypeDescription,byte[]> rawAuxiliaryTypes, 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(Class<?> type)
LoadedTypeInitializeronLoad in interface LoadedTypeInitializertype - The manifestation of the instrumented type.public boolean isAlive()
LoadedTypeInitializerisAlive in interface LoadedTypeInitializertrue if this initializer is alive.Copyright © 2014–2016. All rights reserved.