jnr.ffi
Class Library

java.lang.Object
  extended by jnr.ffi.Library

Deprecated. Use LibraryLoader instead.

public final class Library
extends Object


Method Summary
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. Use Runtime.getRuntime(Object)
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRuntime

public static Runtime getRuntime(Object library)
Deprecated. Use Runtime.getRuntime(Object)

Gets the Runtime that loaded the library interface.

Parameters:
library - A library implementation as returned from LibraryLoader.load()
Returns:
The runtime that loaded the library.

loadLibrary

public static <T> T loadLibrary(String libraryName,
                                Class<T> interfaceClass)
Deprecated. see LibraryLoader for the preferred interface to loading libraries.

Loads a native library and links the methods defined in interfaceClass to native methods in the library.

Parameters:
libraryName - the name of the library to load
interfaceClass - the interface that describes the native library interface
Returns:
an instance of interfaceclass that will call the native methods.

loadLibrary

public static <T> T loadLibrary(Class<T> interfaceClass,
                                String... libraryNames)
Deprecated. see LibraryLoader for the preferred interface to loading libraries.

Loads a native library and links the methods defined in interfaceClass to native methods in the library.

Parameters:
libraryNames - the name of the library to load
interfaceClass - the interface that describes the native library interface
Returns:
an instance of interfaceclass that will call the native methods.

loadLibrary

public static <T> T loadLibrary(String libraryName,
                                Class<T> interfaceClass,
                                Map<LibraryOption,?> libraryOptions)
Deprecated. see LibraryLoader for the preferred interface to loading libraries.

Loads a native library and links the methods defined in interfaceClass to native methods in the library.

Parameters:
libraryName - the name of the library to load
interfaceClass - the interface that describes the native library interface
libraryOptions - options
Returns:
an instance of interfaceclass that will call the native methods.

loadLibrary

public static <T> T loadLibrary(Class<T> interfaceClass,
                                Map<LibraryOption,?> libraryOptions,
                                String... libraryNames)
Deprecated. see LibraryLoader for the preferred interface to loading libraries.

Loads a native library and links the methods defined in interfaceClass to native methods in the library.

Parameters:
libraryNames - the name of the library to load
interfaceClass - the interface that describes the native library interface
libraryOptions - options
Returns:
an instance of interfaceclass that will call the native methods.

addLibraryPath

public static void addLibraryPath(String libraryName,
                                  File path)
Deprecated. see LibraryLoader for the preferred interface to loading libraries.

Adds a custom search path for a library

Parameters:
libraryName - the name of the library to search for
path - the path to search for the library in

getLibraryPath

public static List<String> getLibraryPath(String libraryName)
Deprecated. see LibraryLoader for the preferred interface to loading libraries.

Gets the custom search path for a library.

Parameters:
libraryName - The library to retrieve the path for.
Returns:
A List of String instances.

getInstance

@Deprecated
public static Library getInstance(String libraryName)
Deprecated. 


getName

@Deprecated
public String getName()
Deprecated. 



Copyright © 2013. All Rights Reserved.