@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.Transformer.ForBuildPlugin extends java.lang.Object implements AgentBuilder.Transformer
Plugin. Note that a transformer is never completed as class loading
might happen dynamically such that plugins are not closed.AgentBuilder.Transformer.Compound, AgentBuilder.Transformer.ForAdvice, AgentBuilder.Transformer.ForBuildPlugin, AgentBuilder.Transformer.NoOp| Modifier and Type | Field and Description |
|---|---|
private Plugin |
plugin
The plugin to apply.
|
| Constructor and Description |
|---|
ForBuildPlugin(Plugin plugin)
Creates a new transformer for a build
Plugin. |
| Modifier and Type | Method and Description |
|---|---|
DynamicType.Builder<?> |
transform(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
java.lang.ClassLoader classLoader,
JavaModule module)
Allows for a transformation of a
DynamicType.Builder. |
private final Plugin plugin
public DynamicType.Builder<?> transform(DynamicType.Builder<?> builder, TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module)
DynamicType.Builder.transform in interface AgentBuilder.Transformerbuilder - The dynamic builder to transform.typeDescription - The description of the type currently being instrumented.classLoader - The class loader of the instrumented class. Might be null to represent the bootstrap class loader.module - The class's module or null if the current VM does not support modules.builder.