jnr.ffi.provider.jffi
Class Provider
java.lang.Object
jnr.ffi.FFIProvider
jnr.ffi.provider.jffi.Provider
public final class Provider
- extends FFIProvider
|
Method Summary |
Runtime |
getRuntime()
Gets the default Runtime for this provider |
|
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. |
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Provider
public Provider()
getRuntime
public final Runtime getRuntime()
- Description copied from class:
FFIProvider
- Gets the default Runtime for this provider
- Specified by:
getRuntime in class FFIProvider
loadLibrary
public <T> T loadLibrary(String libraryName,
Class<T> interfaceClass,
Map<LibraryOption,?> libraryOptions)
- Description copied from class:
FFIProvider
- Loads a native library and links the methods defined in
interfaceClass
to native methods in the library.
- Specified by:
loadLibrary in class FFIProvider
- Parameters:
libraryName - the name of the library to loadinterfaceClass - the interface that describes the native library interfacelibraryOptions - options
- Returns:
- an instance of
interfaceclass that will call the native methods.
loadLibrary
public <T> T loadLibrary(Class<T> interfaceClass,
Map<LibraryOption,?> libraryOptions,
String... libraryNames)
- Description copied from class:
FFIProvider
- Loads a native library and links the methods defined in
interfaceClass
to native methods in the library.
- Specified by:
loadLibrary in class FFIProvider
- Parameters:
interfaceClass - the interface that describes the native library interfacelibraryOptions - optionslibraryNames - the list of libraries to load
- Returns:
- an instance of
interfaceclass that will call the native methods.
Copyright © 2012. All Rights Reserved.