Interface Advice.Dispatcher.RelocationHandler
- All Known Implementing Classes:
Advice.Dispatcher.RelocationHandler.Disabled, Advice.Dispatcher.RelocationHandler.ForType, Advice.Dispatcher.RelocationHandler.ForValue.OfDefault, Advice.Dispatcher.RelocationHandler.ForValue.OfNonDefault
- Enclosing interface:
Advice.Dispatcher
public static interface Advice.Dispatcher.RelocationHandler
A relocation handler is responsible for chaining the usual control flow of an instrumented method.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA boundAdvice.Dispatcher.RelocationHandler.static enumA disabled relocation handler that does never trigger a relocation.static classA relocation handler that is triggered if the checked value is an instance of a given type.static enumA relocation handler factory that triggers a relocation for a default or non-default value.static interfaceA relocator is responsible for triggering a relocation if a relocation handler triggers a relocating condition. -
Method Summary
Modifier and TypeMethodDescriptionbind(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this relocation handler to a relocation dispatcher.
-
Method Details
-
bind
Advice.Dispatcher.RelocationHandler.Bound bind(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this relocation handler to a relocation dispatcher.- Parameters:
instrumentedMethod- The instrumented method.relocation- The relocation to apply.- Returns:
- A bound relocation handler.
-