|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjnr.ffi.FFIProvider
public abstract class FFIProvider
This class defines the facilities a jaffl FFI provider must provide.
| Constructor Summary | |
|---|---|
protected |
FFIProvider()
|
| Method Summary | ||
|---|---|---|
abstract Runtime |
getRuntime()
Gets the default Runtime for this provider |
|
abstract
|
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
|
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 |
| Constructor Detail |
|---|
protected FFIProvider()
| Method Detail |
|---|
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 - options
interfaceclass 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 load
interfaceclass that will call the native methods.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||