static class AbstractProxyFactory.CoincidentalInvocationHandlerAdapter
extends java.lang.Object
implements java.io.Serializable
This is a serendipitous class - it can be extended, and the subclass made to implement either
InvocationHandler or the CGLIB
InvocationHandler because they both conveniently have exactly the same
invoke method with the same signature.
Clever, eh?
| Modifier and Type | Field and Description |
|---|---|
private Invoker |
invoker |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
CoincidentalInvocationHandlerAdapter(Invoker invocationInterceptor)
Construct a CoincidentalInvocationHandlerAdapter.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Invoke a method on an object.
|
private static final long serialVersionUID
private Invoker invoker
public CoincidentalInvocationHandlerAdapter(Invoker invocationInterceptor)
invocationInterceptor - the invocation handler.public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
proxy - the proxy on that the method was originally calledmethod - the methodargs - the arguments of the calljava.lang.Throwable - if calling code throws or the call failedInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method,
java.lang.Object[]),
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method,
java.lang.Object[])