LibraryLoader instead.public final class Library
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
customSearchPaths
Deprecated.
|
private java.lang.String |
name
Deprecated.
The name of this library
|
| Modifier | Constructor and Description |
|---|---|
private |
Library(java.lang.String libraryName)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addLibraryPath(java.lang.String libraryName,
java.io.File path)
Deprecated.
see
LibraryLoader for the preferred interface to loading libraries. |
static Library |
getInstance(java.lang.String libraryName)
Deprecated.
|
static java.util.List<java.lang.String> |
getLibraryPath(java.lang.String libraryName)
Deprecated.
see
LibraryLoader for the preferred interface to loading libraries. |
java.lang.String |
getName()
Deprecated.
|
static Runtime |
getRuntime(java.lang.Object library)
Deprecated.
|
static <T> T |
loadLibrary(java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions,
java.lang.String... libraryNames)
Deprecated.
see
LibraryLoader for the preferred interface to loading libraries. |
static <T> T |
loadLibrary(java.lang.Class<T> interfaceClass,
java.lang.String... libraryNames)
Deprecated.
see
LibraryLoader for the preferred interface to loading libraries. |
static <T> T |
loadLibrary(java.lang.String libraryName,
java.lang.Class<T> interfaceClass)
Deprecated.
see
LibraryLoader for the preferred interface to loading libraries. |
static <T> T |
loadLibrary(java.lang.String libraryName,
java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions)
Deprecated.
see
LibraryLoader for the preferred interface to loading libraries. |
private static final java.util.Map<java.lang.String,java.util.List<java.lang.String>> customSearchPaths
private final java.lang.String name
public static Runtime getRuntime(java.lang.Object library)
Runtime.getRuntime(Object)Runtime that loaded the library interface.library - A library implementation as returned from LibraryLoader.load()public static <T> T loadLibrary(java.lang.String libraryName,
java.lang.Class<T> interfaceClass)
LibraryLoader for the preferred interface to loading libraries.interfaceClass
to native methods in the library.T - the interface class.libraryName - the name of the library to loadinterfaceClass - the interface that describes the native library interfaceinterfaceclass that will call the native methods.public static <T> T loadLibrary(java.lang.Class<T> interfaceClass,
java.lang.String... libraryNames)
LibraryLoader for the preferred interface to loading libraries.interfaceClass
to native methods in the library.T - the interface type.libraryNames - the name of the library to loadinterfaceClass - the interface that describes the native library interfaceinterfaceclass that will call the native methods.public static <T> T loadLibrary(java.lang.String libraryName,
java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions)
LibraryLoader for the preferred interface to loading libraries.interfaceClass
to native methods in the library.T - the interface type.libraryName - the name of the library to loadinterfaceClass - the interface that describes the native library interfacelibraryOptions - optionsinterfaceclass that will call the native methods.public static <T> T loadLibrary(java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions,
java.lang.String... libraryNames)
LibraryLoader for the preferred interface to loading libraries.interfaceClass
to native methods in the library.T - the interface type.libraryNames - the name of the library to loadinterfaceClass - the interface that describes the native library interfacelibraryOptions - optionsinterfaceclass that will call the native methods.public static void addLibraryPath(java.lang.String libraryName,
java.io.File path)
LibraryLoader for the preferred interface to loading libraries.libraryName - the name of the library to search forpath - the path to search for the library inpublic static java.util.List<java.lang.String> getLibraryPath(java.lang.String libraryName)
LibraryLoader for the preferred interface to loading libraries.libraryName - The library to retrieve the path for.@Deprecated public static Library getInstance(java.lang.String libraryName)
@Deprecated public java.lang.String getName()