final class PassThroughInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
m_object
The target object delegated to.
|
| Constructor and Description |
|---|
PassThroughInvocationHandler(java.lang.Object object)
Create an Invocation handler for specified object.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) java.lang.Object |
getObject()
Retrieve the underlying object delegated to.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method meth,
java.lang.Object[] args)
Invoke the appropriate method on underlying object.
|
public PassThroughInvocationHandler(java.lang.Object object)
object - the object to delegate topublic java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method meth,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerproxy - the proxy objectmeth - the methodargs - the argumentsjava.lang.Throwable - method throws an exceptionjava.lang.Object getObject()