@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,
Set<TypeDescription> auxiliaryTypes,
ClassFileLocator classFileLocator,
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, Set<TypeDescription> auxiliaryTypes, ClassFileLocator classFileLocator, Map<TypeDescription,LoadedTypeInitializer> loadedTypeInitializers, ClassInjector classInjector)
instrumentedType
- The instrumented type.auxiliaryTypes
- The auxiliary types to inject.classFileLocator
- The class file locator to use.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–2025. All rights reserved.