public abstract class MetadataInvocationHandler<T> extends Object implements InvocationHandler
InvocationHandler to provide and expose metadata about the inner object implementation.
This allows for nested object Proxyies to work as expected.
| Modifier | Constructor and Description |
|---|---|
protected |
MetadataInvocationHandler(T innerObject)
Creates a new proxy for the provided instance of type T.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
doInvoke(Object proxy,
Method method,
Object[] args)
Performs the actual invocation on the proxied
Object, or delegates the call to an inner proxy. |
protected Method[] |
getImplementationDeclaredMethods() |
protected T |
getProxiedObject()
The proxied object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinvokeprotected MetadataInvocationHandler(T innerObject)
innerObject - object instance to wrap. Non null.protected Method[] getImplementationDeclaredMethods()
protected Object doInvoke(Object proxy, Method method, Object[] args) throws Throwable
Object, or delegates the call to an inner proxy.
See InvocationHandler.invoke(Object, Method, Object[])Throwableprotected T getProxiedObject()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.