public class ClassMethodInvoker extends java.lang.Object implements IMethodInvoker
ClassMethodInvoker - specific class method invoker.| Modifier and Type | Class and Description |
|---|---|
protected class |
ClassMethodInvoker.Invoker
Invoker - invokes the method of the object. |
IMethodInvoker.CallbackAdapter, IMethodInvoker.ICallback| Constructor and Description |
|---|
ClassMethodInvoker(java.util.concurrent.Executor executor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInvoker(java.lang.String method,
ClassMethodInvoker.Invoker invoker)
Adds a new
method invoker. |
void |
invoke(java.lang.Object o,
java.lang.String method,
IMethodInvoker.ICallback callback,
java.lang.Object... args)
Invokes
method with the args of the object o. |
public ClassMethodInvoker(java.util.concurrent.Executor executor)
executor - method executor (the method is invoked asynchronously
in the executor's thread)public void invoke(java.lang.Object o,
java.lang.String method,
IMethodInvoker.ICallback callback,
java.lang.Object... args)
IMethodInvokerinvoke in interface IMethodInvokero - object which method is invokedmethod - method to invokecallback - callback to receive invocation resultargs - method argumentsprotected final void addInvoker(java.lang.String method,
ClassMethodInvoker.Invoker invoker)
method invoker.method - methodinvoker - Invoker instance