LibraryLoader
instead.public final class Library
extends java.lang.Object
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. |
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()
Copyright © 2017. All rights reserved.