public interface Dispatchable<T>
This can be used to intercept method calls and do work around them, redirect work, or block calls entirely.
Modifier and Type | Method and Description |
---|---|
Object |
dispatch(Method method,
Object[] args)
Dispatch the method and arguments to this object.
|
Object dispatch(Method method, Object[] args) throws Throwable
method
- a method defined in class T
args
- arguments corresponding to said method
method
Throwable
- any exception that might have been raised while invoking the method