Package jnr.ffi.provider
Class NativeInvocationHandler
java.lang.Object
jnr.ffi.provider.NativeInvocationHandler
- All Implemented Interfaces:
InvocationHandler
InvocationHandler used to map invocations on a java interface to the correct native function.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionNativeInvocationHandler
(Map<Method, Invoker> invokers) Creates a new InvocationHandler instance. -
Method Summary
-
Field Details
-
fastLookupTable
-
invokerMap
-
-
Constructor Details
-
NativeInvocationHandler
Creates a new InvocationHandler instance.- Parameters:
invokers
- A map of method invokers
-
-
Method Details
-
invoke
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
lookupAndCacheInvoker
-