Package net.bytebuddy.asm
Class Advice.PostProcessor.Factory.Compound
- java.lang.Object
-
- net.bytebuddy.asm.Advice.PostProcessor.Factory.Compound
-
- All Implemented Interfaces:
Advice.PostProcessor.Factory
- Enclosing interface:
- Advice.PostProcessor.Factory
@Enhance public static class Advice.PostProcessor.Factory.Compound extends java.lang.Object implements Advice.PostProcessor.Factory
A compound factory for a post processor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.PostProcessor.Factory
Advice.PostProcessor.Factory.Compound
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Advice.PostProcessor.Factory>
factories
The represented post processor factories.
-
Constructor Summary
Constructors Constructor Description Compound(java.util.List<? extends Advice.PostProcessor.Factory> factories)
Creates a compound post processor factory.Compound(Advice.PostProcessor.Factory... factory)
Creates a compound post processor factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Advice.PostProcessor
make(MethodDescription.InDefinedShape advice, boolean exit)
Creates a post processor for a given advice method.
-
-
-
Field Detail
-
factories
private final java.util.List<Advice.PostProcessor.Factory> factories
The represented post processor factories.
-
-
Constructor Detail
-
Compound
public Compound(Advice.PostProcessor.Factory... factory)
Creates a compound post processor factory.- Parameters:
factory
- The represented post processor factories.
-
Compound
public Compound(java.util.List<? extends Advice.PostProcessor.Factory> factories)
Creates a compound post processor factory.- Parameters:
factories
- The represented post processor factories.
-
-
Method Detail
-
make
public Advice.PostProcessor make(MethodDescription.InDefinedShape advice, boolean exit)
Creates a post processor for a given advice method.- Specified by:
make
in interfaceAdvice.PostProcessor.Factory
- Parameters:
advice
- The advice method to create the post processor for.exit
-true
if the advice is exit advice.- Returns:
- The created post processor.
-
-