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 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.ForSubstitution, AgentBuilder.TransformerDecorator.NoOp
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<AgentBuilder.TransformerDecorator> The listeners to invoke. -
Constructor Summary
ConstructorsConstructorDescriptionCompound
(List<? extends AgentBuilder.TransformerDecorator> transformerDecorators) Creates a new compound listener.Compound
(AgentBuilder.TransformerDecorator... transformerDecorator) Creates a new compound transformer decorator. -
Method Summary
Modifier and TypeMethodDescriptiondecorate
(ResettableClassFileTransformer classFileTransformer) Decorates the applied class file transformer.
-
Field Details
-
transformerDecorators
The listeners to invoke.
-
-
Constructor Details
-
Compound
Creates a new compound transformer decorator.- Parameters:
transformerDecorator
- The transformer decorators to add.
-
Compound
Creates a new compound listener.- Parameters:
transformerDecorators
- The transformerDecorators to invoke.
-
-
Method Details
-
decorate
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.
-