abstract class AbstractProxyFactory extends java.lang.Object implements ProxyFactory
Precondition for the derived implementation is the support of an interface for the invocation handler, that has the
same methods with the same signature as InvocationHandler. Additionally it supports the
method getInvoker of the proxy instance.
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
AbstractProxyFactory.CoincidentalInvocationHandlerAdapter
Generic implementation of a invocation handler with a JDK compatible method and signature.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.reflect.Method |
getInvoker
The getInvoker method.
|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
AbstractProxyFactory() |
| Modifier and Type | Method and Description |
|---|---|
Invoker |
getInvoker(java.lang.Object proxy)
Retrieve the invocation handler of the proxy.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanProxy, createProxy, isProxyClassprivate static final long serialVersionUID
public static final java.lang.reflect.Method getInvoker
public Invoker getInvoker(java.lang.Object proxy)
InvokerReference to every proxy instance.getInvoker in interface ProxyFactoryproxy - the proxy instance.Invoker instance acting as invocation handler.