com.smaxe.uv.invoker.support
Class PublicMethodInvoker
java.lang.Object
com.smaxe.uv.invoker.support.PublicMethodInvoker
- All Implemented Interfaces:
- IMethodInvoker
public final class PublicMethodInvoker
- extends java.lang.Object
- implements IMethodInvoker
PublicMethodInvoker
- IMethodInvoker
implementation
which invokes public methods that are not annotated as PrivateMethod
.
- Author:
- Andrei Sochirca
Method Summary |
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 . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PublicMethodInvoker
public PublicMethodInvoker(java.util.concurrent.Executor executor,
java.lang.Class clazz)
- Constructor.
- Parameters:
executor
- clazz
-
PublicMethodInvoker
public PublicMethodInvoker(java.lang.Class clazz)
- Constructor.
- Parameters:
clazz
-
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