public final class Provider extends FFIProvider
Constructor and Description |
---|
Provider() |
Modifier and Type | Method and Description |
---|---|
Runtime |
getRuntime()
Gets the default Runtime for this provider
|
<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. |
<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 final Runtime getRuntime()
FFIProvider
getRuntime
in class FFIProvider
public <T> T loadLibrary(String libraryName, Class<T> interfaceClass, Map<LibraryOption,?> libraryOptions)
FFIProvider
interfaceClass
to native methods in the library.loadLibrary
in class FFIProvider
libraryName
- the name of the library to loadinterfaceClass
- the interface that describes the native library interfacelibraryOptions
- optionsinterfaceclass
that will call the native methods.public <T> T loadLibrary(Class<T> interfaceClass, Map<LibraryOption,?> libraryOptions, String... libraryNames)
FFIProvider
interfaceClass
to native methods in the library.loadLibrary
in class FFIProvider
interfaceClass
- the interface that describes the native library interfacelibraryOptions
- optionslibraryNames
- the list of libraries to loadinterfaceclass
that will call the native methods.Copyright © 2014. All rights reserved.