Package | Description |
---|---|
jnr.ffi |
Modifier and Type | Method and Description |
---|---|
static LibraryOption |
LibraryOption.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LibraryOption[] |
LibraryOption.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
LibraryLoader<T> |
LibraryLoader.option(LibraryOption option,
Object value)
Sets an option when loading libraries.
|
Modifier and Type | Method and Description |
---|---|
protected abstract T |
LibraryLoader.loadLibrary(Class<T> interfaceClass,
Collection<String> libraryNames,
Collection<String> searchPaths,
Map<LibraryOption,Object> options,
boolean failImmediately)
Implemented by FFI providers to load the actual library.
|
static <T> T |
LibraryLoader.loadLibrary(Class<T> interfaceClass,
Map<LibraryOption,?> libraryOptions,
Map<String,List<String>> searchPaths,
String... libraryNames)
Loads a native library and links the methods defined in
interfaceClass
to native methods in the library. |
static <T> T |
Library.loadLibrary(Class<T> interfaceClass,
Map<LibraryOption,?> libraryOptions,
String... libraryNames)
Deprecated.
see
LibraryLoader for the preferred interface to loading libraries. |
static <T> T |
LibraryLoader.loadLibrary(Class<T> interfaceClass,
Map<LibraryOption,?> libraryOptions,
String... libraryNames)
Same as calling
LibraryLoader.loadLibrary(Class, Map, Map, String...) with an empty search path map. |
static <T> T |
Library.loadLibrary(String libraryName,
Class<T> interfaceClass,
Map<LibraryOption,?> libraryOptions)
Deprecated.
see
LibraryLoader for the preferred interface to loading libraries. |
String |
Platform.locateLibrary(String libName,
List<String> libraryPaths,
Map<LibraryOption,Object> options)
Searches through a list of directories for a native library.
|
static boolean |
LibraryLoader.saveError(Map<LibraryOption,?> options,
boolean methodHasSave,
boolean methodHasIgnore)
When either the
SaveError or
IgnoreError annotations are used, the
following matrix applies:
(SL = save at library level, IM = ignore at method level, etc) |
Copyright © 2024. All rights reserved.