LibraryLoader
instead.public final class Library extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addLibraryPath(String libraryName,
File path)
Deprecated.
see
LibraryLoader for the preferred interface to loading libraries. |
static Library |
getInstance(String libraryName)
Deprecated.
|
static List<String> |
getLibraryPath(String libraryName)
Deprecated.
see
LibraryLoader for the preferred interface to loading libraries. |
String |
getName()
Deprecated.
|
static Runtime |
getRuntime(Object library)
Deprecated.
|
static <T> T |
loadLibrary(Class<T> interfaceClass,
Map<LibraryOption,?> libraryOptions,
String... libraryNames)
Deprecated.
see
LibraryLoader for the preferred interface to loading libraries. |
static <T> T |
loadLibrary(Class<T> interfaceClass,
String... libraryNames)
Deprecated.
see
LibraryLoader for the preferred interface to loading libraries. |
static <T> T |
loadLibrary(String libraryName,
Class<T> interfaceClass)
Deprecated.
see
LibraryLoader for the preferred interface to loading libraries. |
static <T> T |
loadLibrary(String libraryName,
Class<T> interfaceClass,
Map<LibraryOption,?> libraryOptions)
Deprecated.
see
LibraryLoader for the preferred interface to loading libraries. |
public static Runtime getRuntime(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(String libraryName, 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(Class<T> interfaceClass, 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(String libraryName, Class<T> interfaceClass, 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(Class<T> interfaceClass, Map<LibraryOption,?> libraryOptions, 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(String libraryName, 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 List<String> getLibraryPath(String libraryName)
LibraryLoader
for the preferred interface to loading libraries.libraryName
- The library to retrieve the path for.@Deprecated public static Library getInstance(String libraryName)
@Deprecated public String getName()
Copyright © 2017. All rights reserved.