@HashCodeAndEqualsPlugin.Enhance protected static class Advice.Delegator.ForDynamicInvocation.Factory extends Object implements Advice.Delegator.Factory
Modifier | Constructor and Description |
---|---|
protected |
Factory(MethodDescription.InDefinedShape bootstrapMethod,
Advice.BootstrapArgumentResolver.Factory resolverFactory,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a factory for a dynamic invocation dispatcher.
|
Modifier and Type | Method and Description |
---|---|
Advice.Delegator |
make(MethodDescription.InDefinedShape adviceMethod,
boolean exit)
Resolves a delegator.
|
protected Factory(MethodDescription.InDefinedShape bootstrapMethod, Advice.BootstrapArgumentResolver.Factory resolverFactory, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
bootstrapMethod
- The bootstrap method.resolverFactory
- A resolver factory to provide the arguments to the bootstrap method.visitor
- A visitor to apply to the parameter types prior to resolving the MethodType
that is passed to the bootstrap method. The supplied types might not be available
to the instrumented type what might make it necessary to camouflage them to avoid
class loading errors. The actual type should then rather be passed in a different
format by the supplied Advice.BootstrapArgumentResolver
.public Advice.Delegator make(MethodDescription.InDefinedShape adviceMethod, boolean exit)
make
in interface Advice.Delegator.Factory
adviceMethod
- The advice method.exit
- true
if the advice is applied as exit advice.Copyright © 2014–2025. All rights reserved.