Package jnr.ffi.provider.jffi
Class NativeLibraryLoader<T>
- java.lang.Object
-
- jnr.ffi.LibraryLoader<T>
-
- jnr.ffi.provider.jffi.NativeLibraryLoader<T>
-
class NativeLibraryLoader<T> extends LibraryLoader<T>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static boolean
ASM_ENABLED
-
Constructor Summary
Constructors Constructor Description NativeLibraryLoader(java.lang.Class<T> interfaceClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
loadLibrary(java.lang.Class<T> interfaceClass, java.util.Collection<java.lang.String> libraryNames, java.util.Collection<java.lang.String> searchPaths, java.util.Map<LibraryOption,java.lang.Object> options)
Implemented by FFI providers to load the actual library.
-
-
-
Constructor Detail
-
NativeLibraryLoader
NativeLibraryLoader(java.lang.Class<T> interfaceClass)
-
-
Method Detail
-
loadLibrary
public T loadLibrary(java.lang.Class<T> interfaceClass, java.util.Collection<java.lang.String> libraryNames, java.util.Collection<java.lang.String> searchPaths, java.util.Map<LibraryOption,java.lang.Object> options)
Description copied from class:LibraryLoader
Implemented by FFI providers to load the actual library.- Specified by:
loadLibrary
in classLibraryLoader<T>
- Parameters:
interfaceClass
- The java class that describes the functions to be mapped.libraryNames
- A list of libraries to load and search for symbols.searchPaths
- The paths to search for libraries to be loaded.options
- The options to apply when loading the library.- Returns:
- an instance of
interfaceClass
that will call the native methods.
-
-