Package net.bytebuddy.agent.builder
Class AgentBuilder.Transformer.ForBuildPlugin
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.Transformer.ForBuildPlugin
-
- All Implemented Interfaces:
AgentBuilder.Transformer
- Enclosing interface:
- AgentBuilder.Transformer
@Enhance public static class AgentBuilder.Transformer.ForBuildPlugin extends java.lang.Object implements AgentBuilder.Transformer
A transformer that applies a buildPlugin. Note that a transformer is never completed as class loading might happen dynamically such that plugins are not closed.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.Transformer
AgentBuilder.Transformer.ForAdvice, AgentBuilder.Transformer.ForBuildPlugin
-
-
Constructor Summary
Constructors Constructor Description ForBuildPlugin(Plugin plugin)Creates a new transformer for a buildPlugin.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DynamicType.Builder<?>transform(DynamicType.Builder<?> builder, TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.security.ProtectionDomain protectionDomain)Allows for a transformation of aDynamicType.Builder.
-
-
-
Field Detail
-
plugin
private final Plugin plugin
The plugin to apply.
-
-
Method Detail
-
transform
public DynamicType.Builder<?> transform(DynamicType.Builder<?> builder, TypeDescription typeDescription, @MaybeNull java.lang.ClassLoader classLoader, @MaybeNull JavaModule module, @MaybeNull java.security.ProtectionDomain protectionDomain)
Allows for a transformation of aDynamicType.Builder.- Specified by:
transformin interfaceAgentBuilder.Transformer- Parameters:
builder- The dynamic builder to transform.typeDescription- The description of the type currently being instrumented.classLoader- The class loader of the instrumented class. Might benullto represent the bootstrap class loader.module- The class's module ornullif the current VM does not support modules.protectionDomain- The protection domain of the transformed type ornullif not available- Returns:
- A transformed version of the supplied
builder.
-
-