Package net.bytebuddy.asm
Interface Advice.AssignReturned.Handler.Factory<T extends Annotation>
- Type Parameters:
T
- The annotation type that activates this handler factory.
- All Known Implementing Classes:
Advice.AssignReturned.Handler.Factory.Simple
,Advice.AssignReturned.ToAllArguments.Handler.Factory
,Advice.AssignReturned.ToArguments.Handler.Factory
,Advice.AssignReturned.ToFields.Handler.Factory
,Advice.AssignReturned.ToReturned.Handler.Factory
,Advice.AssignReturned.ToThis.Handler.Factory
,Advice.AssignReturned.ToThrown.Handler.Factory
- Enclosing interface:
Advice.AssignReturned.Handler
public static interface Advice.AssignReturned.Handler.Factory<T extends Annotation>
A factory for resolving a handler for a given advice method.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A simple implementation of aAdvice.AssignReturned.Handler.Factory
that resolves a given list ofAdvice.AssignReturned.Handler
s. -
Method Summary
Modifier and TypeMethodDescriptionReturns the annotation type that activates this handler factory.make
(MethodDescription.InDefinedShape advice, boolean exit, AnnotationDescription.Loadable<? extends T> annotation) Resolves a list of handlers for this factory.
-
Method Details
-
getAnnotationType
Returns the annotation type that activates this handler factory.- Returns:
- The annotation type that activates this handler factory.
-
make
List<Advice.AssignReturned.Handler> make(MethodDescription.InDefinedShape advice, boolean exit, AnnotationDescription.Loadable<? extends T> annotation) Resolves a list of handlers for this factory.- Parameters:
advice
- The advice method for which to resolve handlers.exit
-true
if this factory is applied for exit advice.annotation
- The annotation that activated this handler factory.- Returns:
- A list of handlers to apply.
-