| Modifier | Constructor and Description |
|---|---|
protected |
FFIProvider() |
| Modifier and Type | Method and Description |
|---|---|
abstract Runtime |
getRuntime()
Gets the default Runtime for this provider
|
abstract <T> T |
loadLibrary(Class<T> interfaceClass,
Map<LibraryOption,?> libraryOptions,
String... libraryNames)
Loads a native library and links the methods defined in
interfaceClass
to native methods in the library. |
abstract <T> T |
loadLibrary(String libraryName,
Class<T> interfaceClass,
Map<LibraryOption,?> libraryOptions)
Loads a native library and links the methods defined in
interfaceClass
to native methods in the library. |
public abstract Runtime getRuntime()
public abstract <T> T loadLibrary(String libraryName, Class<T> interfaceClass, Map<LibraryOption,?> libraryOptions)
interfaceClass
to native methods in the library.libraryName - the name of the library to loadinterfaceClass - the interface that describes the native library interfacelibraryOptions - optionsinterfaceclass that will call the native methods.public abstract <T> T loadLibrary(Class<T> interfaceClass, Map<LibraryOption,?> libraryOptions, String... libraryNames)
interfaceClass
to native methods in the library.interfaceClass - the interface that describes the native library interfacelibraryOptions - optionslibraryNames - the list of libraries to loadinterfaceclass that will call the native methods.Copyright © 2013. All rights reserved.