jnr.ffi.provider
Class NativeInvocationHandler
java.lang.Object
jnr.ffi.provider.NativeInvocationHandler
- All Implemented Interfaces:
- InvocationHandler
public class NativeInvocationHandler
- extends Object
- implements InvocationHandler
InvocationHandler used to map invocations on a java interface to the correct native function.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NativeInvocationHandler
public NativeInvocationHandler(Map<Method,Invoker> invokers)
- Creates a new InvocationHandler instance.
- Parameters:
invokers - A map of method invokers
invoke
public Object invoke(Object self,
Method method,
Object[] argArray)
throws Throwable
- Specified by:
invoke in interface InvocationHandler
- Throws:
Throwable
Copyright © 2013. All Rights Reserved.