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()
FFIProvidergetRuntime in class FFIProviderpublic <T> T loadLibrary(String libraryName, Class<T> interfaceClass, Map<LibraryOption,?> libraryOptions)
FFIProviderinterfaceClass
to native methods in the library.loadLibrary in class FFIProviderlibraryName - 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)
FFIProviderinterfaceClass
to native methods in the library.loadLibrary in class FFIProviderinterfaceClass - 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.