public class NullInvoker extends java.lang.Object implements Invoker
Invoker implementation that returns always new Null objects.| Modifier and Type | Field and Description |
|---|---|
private ProxyFactory |
proxyFactory |
private static long |
serialVersionUID |
private static java.lang.reflect.Method |
toString |
private java.lang.Class<?> |
type |
| Constructor and Description |
|---|
NullInvoker(java.lang.Class<?> type,
ProxyFactory proxyFactory)
Construct a NullInvoker.
|
| Modifier and Type | Method and Description |
|---|---|
private java.lang.Class<?> |
getType(java.lang.Object object) |
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 boolean |
nullObjectIsSerializable() |
private void |
writeObject(java.io.ObjectOutputStream out) |
private static final long serialVersionUID
private static final java.lang.reflect.Method toString
private java.lang.Class<?> type
private ProxyFactory proxyFactory
public NullInvoker(java.lang.Class<?> type,
ProxyFactory proxyFactory)
type - the type of the proxyproxyFactory - the ProxyFactory to usepublic java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
Invokerprivate java.lang.Class<?> getType(java.lang.Object object)
private void writeObject(java.io.ObjectOutputStream out)
throws java.io.IOException
java.io.IOExceptionprivate boolean nullObjectIsSerializable()