public class SimpleInvoker extends java.lang.Object implements Invoker
Invoker implementation, that routes any call to a target object. A null value as
target can be handled, the invocation result will always be null.| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
private java.lang.Object |
target |
| Constructor and Description |
|---|
SimpleInvoker(java.lang.Object target)
Construct a SimpleInvoker.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
getTarget()
Retrieve the target of the invocations.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Invocation of a method of the proxied object.
|
private static final long serialVersionUID
private java.lang.Object target
public SimpleInvoker(java.lang.Object target)
target - the invocation target.public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
Invokerprotected java.lang.Object getTarget()