j2native |
AnsiString |
Argument |
ArrayArgument |
ArrayType |
Bool |
Callback |
Char |
Const |
DelegatedArgument |
DoubleFloat |
FloatArgument |
FloatType |
Function |
FunctionExecutionException |
FunctionNotFoundException |
IllegalMemoryAccessException |
Int |
Int16 |
Int32 |
Int64 |
Int8 |
IntegerArgument |
IntegerType |
J2NativeContext |
Library |
LibraryLoader |
LibraryNotFoundException |
MemoryException |
NumericArgument |
NumericType |
OutOnly |
Pointer |
Pointer.Const |
Pointer.OutOnly |
Pointer.Void |
PointerArgument |
PointerType |
SimpleFloat |
StringType |
StructuralArgument |
Structure |
TypedPointer |
UInt |
UInt16 |
UInt32 |
UInt8 |
Union |
WideChar |
WideString |
ZeroTerminatedString |
| |
com.smardec.j2native
Interface LibraryLoader
- public interface LibraryLoader
Interface for any of the LibraryLoader -s. Class, that implements this interface
should be able to load and unload native libraries. Additional methods exists for convenient and
tuneable use.
- See Also:
- Library
Method Summary |
void |
addPath(java.util.List directories)
Adds additional paths where native libraries could be found. |
void |
addPath(java.lang.String path)
Adds additional paths where native libraries could be found. |
void |
loadLibrary(Library lib)
Loads the native library. |
java.io.File |
locateLibrary(Library lib)
Locates native library. |
void |
unloadLibrary(Library lib)
unloads the native library. |
loadLibrary
public void loadLibrary(Library lib)
- Loads the native library.
- Parameters:
- lib -
Library to load
unloadLibrary
public void unloadLibrary(Library lib)
- unloads the native library.
- Parameters:
- lib -
Library to unload
locateLibrary
public java.io.File locateLibrary(Library lib)
- Locates native library.
- Parameters:
- lib -
Library to locate
- Returns:
- path to the native library.
addPath
public void addPath(java.util.List directories)
- Adds additional paths where native libraries could be found.
- Parameters:
- directories - list of directories
addPath
public void addPath(java.lang.String path)
- Adds additional paths where native libraries could be found.
- Parameters:
- path -
String representation of paths
|
|
|