com.smaxe.uv.invoker.support
Class ClassMethodInvoker
java.lang.Object
com.smaxe.uv.invoker.support.ClassMethodInvoker
- All Implemented Interfaces:
- IMethodInvoker
public class ClassMethodInvoker
- extends java.lang.Object
- implements IMethodInvoker
ClassMethodInvoker - specific class method invoker.
- Author:
- Andrei Sochirca
|
Constructor Summary |
ClassMethodInvoker(java.util.concurrent.Executor executor)
Constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassMethodInvoker
public ClassMethodInvoker(java.util.concurrent.Executor executor)
- Constructor.
- Parameters:
executor - method executor (the method is invoked asynchronously
in the executor's thread)
invoke
public void invoke(java.lang.Object o,
java.lang.String method,
IMethodInvoker.ICallback callback,
java.lang.Object... args)
- Description copied from interface:
IMethodInvoker
- Invokes
method with the args of the object o.
The result is returned through the callback.
- Specified by:
invoke in interface IMethodInvoker
- Parameters:
o - object which method is invokedmethod - method to invokecallback - callback to receive invocation resultargs - method arguments
addInvoker
protected final void addInvoker(java.lang.String method,
ClassMethodInvoker.Invoker invoker)
- Adds a new
method invoker.
- Parameters:
method - methodinvoker - Invoker instance