public class DispatchingInvoker extends java.lang.Object implements Invoker
| Modifier and Type | Field and Description |
|---|---|
private Invoker[] |
invokers |
private java.util.Set<java.lang.reflect.Method>[] |
methodSets |
private static long |
serialVersionUID |
private java.lang.reflect.Method[] |
toStringMethods |
private java.util.List<java.lang.Class<?>> |
types |
| Modifier | Constructor and Description |
|---|---|
protected |
DispatchingInvoker()
Constructor used by pure reflection serialization.
|
|
DispatchingInvoker(ProxyFactory proxyFactory,
java.lang.Class<?>[] types,
ObjectReference<java.lang.Object>[] delegateReferences)
Construct a DispatchingInvoker.
|
| Modifier and Type | Method and Description |
|---|---|
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 void |
readObject(java.io.ObjectInputStream in) |
private void |
writeObject(java.io.ObjectOutputStream out) |
private static final long serialVersionUID
private java.util.List<java.lang.Class<?>> types
private Invoker[] invokers
private transient java.util.Set<java.lang.reflect.Method>[] methodSets
private transient java.lang.reflect.Method[] toStringMethods
public DispatchingInvoker(ProxyFactory proxyFactory, java.lang.Class<?>[] types, ObjectReference<java.lang.Object>[] delegateReferences)
proxyFactory - the ProxyFactory to usetypes - the types of the generated proxydelegateReferences - the ObjectReferences for the delegatesprotected DispatchingInvoker()
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
Invokerprivate void writeObject(java.io.ObjectOutputStream out)
throws java.io.IOException
java.io.IOExceptionprivate void readObject(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundException