setMethodInterceptorDispatcher method
Sets the MethodInterceptorDispatcher that executes the registered interceptors.
The dispatcher is responsible for:
- Determining the call hierarchy for method invocations
- Selecting the correct interceptors based on runtime conditions
- Executing interceptors in proper order and collecting results
Only one dispatcher should be associated with a registry at a time. Changing the dispatcher at runtime may affect ongoing method interception behavior.
Example
final dispatcher = DefaultInterceptorDispatcher();
registry.setMethodInterceptorDispatcher(dispatcher);
@param dispatcher The dispatcher instance that manages method interception
Implementation
@override
void setMethodInterceptorDispatcher(MethodInterceptorDispatcher dispatcher) {
_customMethodInterceptorDispatcher = dispatcher;
}