@HashCodeAndEqualsPlugin.Enhance 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 |
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.
|
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)
onLoad
in interface LoadedTypeInitializer
type
- The manifestation of the instrumented type.public boolean isAlive()
isAlive
in interface LoadedTypeInitializer
true
if this initializer is alive.Copyright © 2014–2019. All rights reserved.