jnr.ffi.provider
Class NativeInvocationHandler

java.lang.Object
  extended by 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.


Constructor Summary
NativeInvocationHandler(Map<Method,Invoker> invokers)
          Creates a new InvocationHandler instance.
 
Method Summary
 Object invoke(Object self, Method method, Object[] argArray)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeInvocationHandler

public NativeInvocationHandler(Map<Method,Invoker> invokers)
Creates a new InvocationHandler instance.

Parameters:
invokers - A map of method invokers
Method Detail

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.