| Modifier and Type | Field and Description |
|---|---|
| private volatile Map | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | NativeInvocationHandler(Map<Method, Invoker>
A map of method invokers invokers)Creates a new InvocationHandler instance. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | invoke(Object
the proxy instance that the method was invoked on self, Method the method, Object[] Method instance corresponding to
the interface method invoked on the proxy instance. The declaring
class of the Method object will be the interface that
the method was declared in, which may be a superinterface of the
proxy interface that the proxy class inherits the method through.an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or argArray)null if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.Implements java. |
| private synchronized Invoker |
| fastLookupTable | back to summary |
|---|---|
| private volatile Map<Method, Invoker> fastLookupTable | |
| invokerMap | back to summary |
|---|---|
| private final Map<Method, Invoker> invokerMap | |
| NativeInvocationHandler | back to summary |
|---|---|
| public NativeInvocationHandler(Map<Method, Invoker> invokers) Creates a new InvocationHandler instance. | |
| invoke | back to summary |
|---|---|
| public Object invoke(Object self, Method method, Object[] argArray) throws Throwable Implements java. Doc from java. Processes a method invocation on a proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.
| |
| lookupAndCacheInvoker | back to summary |
|---|---|
| private synchronized Invoker lookupAndCacheInvoker(Method method) | |