Home about services products contact login
   com.smardec

J2Native

  j2native
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.

Method Detail
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
Home about services products contact login