Package net.bytebuddy.asm
Class Advice.Delegator.ForDynamicInvocation.Factory
java.lang.Object
net.bytebuddy.asm.Advice.Delegator.ForDynamicInvocation.Factory
- All Implemented Interfaces:
Advice.Delegator.Factory
- Enclosing class:
Advice.Delegator.ForDynamicInvocation
@Enhance
protected static class Advice.Delegator.ForDynamicInvocation.Factory
extends Object
implements Advice.Delegator.Factory
A factory for creating a dynamic invocation dispatcher.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MethodDescription.InDefinedShape
The bootstrap method.private final Advice.BootstrapArgumentResolver.Factory
A resolver factory to provide the arguments to the bootstrap method. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Factory
(MethodDescription.InDefinedShape bootstrapMethod, Advice.BootstrapArgumentResolver.Factory resolverFactory) Creates a factory for a dynamic invocation dispatcher. -
Method Summary
Modifier and TypeMethodDescriptionmake
(MethodDescription.InDefinedShape adviceMethod, boolean exit) Resolves a delegator.
-
Field Details
-
bootstrapMethod
The bootstrap method. -
resolverFactory
A resolver factory to provide the arguments to the bootstrap method.
-
-
Constructor Details
-
Factory
protected Factory(MethodDescription.InDefinedShape bootstrapMethod, Advice.BootstrapArgumentResolver.Factory resolverFactory) Creates a factory for a dynamic invocation dispatcher.- Parameters:
bootstrapMethod
- The bootstrap method.resolverFactory
- A resolver factory to provide the arguments to the bootstrap method.
-
-
Method Details
-
make
Resolves a delegator.- Specified by:
make
in interfaceAdvice.Delegator.Factory
- Parameters:
adviceMethod
- The advice method.exit
-true
if the advice is applied as exit advice.- Returns:
- An appropriate delegator.
-