@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.Transformer.ForBuildPlugin extends 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.ForAdvice, AgentBuilder.Transformer.ForBuildPlugin| 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,
ClassLoader classLoader,
JavaModule module,
ProtectionDomain protectionDomain)
Allows for a transformation of a
DynamicType.Builder. |
public DynamicType.Builder<?> transform(DynamicType.Builder<?> builder, TypeDescription typeDescription, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module, @MaybeNull ProtectionDomain protectionDomain)
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.protectionDomain - The protection domain of the transformed type or null if not availablebuilder.Copyright © 2014–2025. All rights reserved.