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 classA simple implementation of aAdvice.AssignReturned.Handler.Factorythat resolves a given list ofAdvice.AssignReturned.Handlers. -
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-trueif this factory is applied for exit advice.annotation- The annotation that activated this handler factory.- Returns:
- A list of handlers to apply.
-