|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.kenai.jaffl.Library
public final class Library
Method Summary | ||
---|---|---|
static void |
addLibraryPath(java.lang.String libraryName,
java.io.File path)
Adds a custom search path for a library |
|
static Library |
getInstance(java.lang.String libraryName)
|
|
static java.util.List<java.lang.String> |
getLibraryPath(java.lang.String libraryName)
Gets the custom search path for a library. |
|
java.lang.String |
getName()
Gets the name of this library |
|
boolean |
hasFunction(java.lang.String function)
Deprecated. this method is no longer supported. |
|
static
|
loadLibrary(java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions,
java.lang.String... libraryNames)
Loads a native library and links the methods defined in interfaceClass
to native methods in the library. |
|
static
|
loadLibrary(java.lang.Class<T> interfaceClass,
java.lang.String... libraryNames)
Loads a native library and links the methods defined in interfaceClass
to native methods in the library. |
|
static
|
loadLibrary(java.lang.String libraryName,
java.lang.Class<T> interfaceClass)
Loads a native library and links the methods defined in interfaceClass
to native methods in the library. |
|
static
|
loadLibrary(java.lang.String libraryName,
java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions)
Loads a native library and links the methods defined in interfaceClass
to native methods in the library. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> T loadLibrary(java.lang.String libraryName, java.lang.Class<T> interfaceClass)
interfaceClass
to native methods in the library.
libraryName
- the name of the library to loadinterfaceClass
- the interface that describes the native library interface
interfaceclass
that will call the native methods.public static <T> T loadLibrary(java.lang.Class<T> interfaceClass, java.lang.String... libraryNames)
interfaceClass
to native methods in the library.
libraryName
- the name of the library to loadinterfaceClass
- the interface that describes the native library interface
interfaceclass
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)
interfaceClass
to native methods in the library.
libraryName
- the name of the library to loadinterfaceClass
- the interface that describes the native library interfacelibraryOptions
- options
interfaceclass
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)
interfaceClass
to native methods in the library.
libraryName
- the name of the library to loadinterfaceClass
- the interface that describes the native library interfacelibraryOptions
- options
interfaceclass
that will call the native methods.public static final void addLibraryPath(java.lang.String libraryName, java.io.File path)
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)
libraryName
- The library to retrieve the path for.
public static final Library getInstance(java.lang.String libraryName)
public boolean hasFunction(java.lang.String function)
function
- The function
public java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |