Package net.bytebuddy.agent.builder
Class AgentBuilder.TransformerDecorator.Compound
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.TransformerDecorator.Compound
-
- All Implemented Interfaces:
AgentBuilder.TransformerDecorator
- Enclosing interface:
- AgentBuilder.TransformerDecorator
@Enhance public static class AgentBuilder.TransformerDecorator.Compound extends java.lang.Object implements AgentBuilder.TransformerDecorator
A compound transformer decorator.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.TransformerDecorator
AgentBuilder.TransformerDecorator.Compound, AgentBuilder.TransformerDecorator.NoOp
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AgentBuilder.TransformerDecorator>
transformerDecorators
The listeners to invoke.
-
Constructor Summary
Constructors Constructor Description Compound(java.util.List<? extends AgentBuilder.TransformerDecorator> transformerDecorators)
Creates a new compound listener.Compound(AgentBuilder.TransformerDecorator... transformerDecorator)
Creates a new compound transformer decorator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResettableClassFileTransformer
decorate(ResettableClassFileTransformer classFileTransformer)
Decorates the applied class file transformer.
-
-
-
Field Detail
-
transformerDecorators
private final java.util.List<AgentBuilder.TransformerDecorator> transformerDecorators
The listeners to invoke.
-
-
Constructor Detail
-
Compound
public Compound(AgentBuilder.TransformerDecorator... transformerDecorator)
Creates a new compound transformer decorator.- Parameters:
transformerDecorator
- The transformer decorators to add.
-
Compound
public Compound(java.util.List<? extends AgentBuilder.TransformerDecorator> transformerDecorators)
Creates a new compound listener.- Parameters:
transformerDecorators
- The transformerDecorators to invoke.
-
-
Method Detail
-
decorate
public ResettableClassFileTransformer decorate(ResettableClassFileTransformer classFileTransformer)
Decorates the applied class file transformer.- Specified by:
decorate
in interfaceAgentBuilder.TransformerDecorator
- Parameters:
classFileTransformer
- The original transformer created by the agent builder.- Returns:
- The class file transformer that is actually being registered.
-
-