com.kenai.jaffl.provider
public class NativeInvocationHandler extends Object implements InvocationHandler
Constructor Summary | |
---|---|
NativeInvocationHandler(Library library, Class<?> interfaceClass, Map<LibraryOption,?> optionsMap)
Creates a new InvocationHandler instance.
|
Method Summary | |
---|---|
Object | invoke(Object self, Method method, Object[] argArray) |
static <T> T | wrapInterface(Library library, Class<T> interfaceClass, Map<LibraryOption,?> optionsMap)
Creates a new InvocationHandler mapping methods in the interfaceClass
to functions in the native library. |
Parameters: library the native library to call interfaceClass the interface that defines the methods in the native library that will be accessed via this handler. optionsMap a dictionary of options to apply to this library.
Parameters:
Returns: a new instance of interfaceClass that can be used to call functions in the native library.