public class TruggerMethodInvoker extends java.lang.Object implements MethodInvoker
Method
objects.Constructor and Description |
---|
TruggerMethodInvoker(java.lang.reflect.Method method) |
TruggerMethodInvoker(java.lang.reflect.Method method,
java.lang.Object instance) |
Modifier and Type | Method and Description |
---|---|
MethodInvoker |
in(java.lang.Object instance)
Indicates the instance that the method must be invoked.
|
<E> E |
withArgs(java.lang.Object... args)
Invokes the object passing the given arguments.
|
<E> E |
withoutArgs()
Invokes the object without passing that argument.
|
public TruggerMethodInvoker(java.lang.reflect.Method method)
public TruggerMethodInvoker(java.lang.reflect.Method method, java.lang.Object instance)
public MethodInvoker in(java.lang.Object instance)
MethodInvoker
in
in interface MethodInvoker
in
in interface Result<Invoker,java.lang.Object>
instance
- the instance for invocation.public <E> E withArgs(java.lang.Object... args)
Invoker
public <E> E withoutArgs()
Invoker
withoutArgs
in interface Invoker