public class NativeInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.reflect.Method,Invoker> |
fastLookupTable |
private java.util.Map<java.lang.reflect.Method,Invoker> |
invokerMap |
Constructor and Description |
---|
NativeInvocationHandler(java.util.Map<java.lang.reflect.Method,Invoker> invokers)
Creates a new InvocationHandler instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(java.lang.Object self,
java.lang.reflect.Method method,
java.lang.Object[] argArray) |
private Invoker |
lookupAndCacheInvoker(java.lang.reflect.Method method) |
private volatile java.util.Map<java.lang.reflect.Method,Invoker> fastLookupTable
private final java.util.Map<java.lang.reflect.Method,Invoker> invokerMap
public NativeInvocationHandler(java.util.Map<java.lang.reflect.Method,Invoker> invokers)
invokers
- A map of method invokerspublic java.lang.Object invoke(java.lang.Object self, java.lang.reflect.Method method, java.lang.Object[] argArray) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable
private Invoker lookupAndCacheInvoker(java.lang.reflect.Method method)