@HashCodeAndEqualsPlugin.Enhance public static class LoadedTypeInitializer.Compound extends Object implements LoadedTypeInitializer, Serializable
LoadedTypeInitializer.Compound, LoadedTypeInitializer.ForStaticField, LoadedTypeInitializer.NoOp
Constructor and Description |
---|
Compound(List<? extends LoadedTypeInitializer> loadedTypeInitializers)
Creates a new compound loaded type initializer.
|
Compound(LoadedTypeInitializer... loadedTypeInitializer)
Creates a new compound loaded type 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.
|
public Compound(LoadedTypeInitializer... loadedTypeInitializer)
loadedTypeInitializer
- A number of loaded type initializers in their invocation order.public Compound(List<? extends LoadedTypeInitializer> loadedTypeInitializers)
loadedTypeInitializers
- A number of loaded type initializers in their invocation order.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–2020. All rights reserved.