public class MethodSelectorInvoker extends java.lang.Object implements MethodInvoker
Constructor and Description |
---|
MethodSelectorInvoker(MethodSelector selector) |
MethodSelectorInvoker(MethodSelector selector,
java.lang.Object target) |
Modifier and Type | Method and Description |
---|---|
Invoker |
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 MethodSelectorInvoker(MethodSelector selector)
public MethodSelectorInvoker(MethodSelector selector, java.lang.Object target)
public Invoker 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