jaulib v1.3.0
Jau Support Library (C++, Java, ..)
|
Static JNI Native Libraries handler. More...
Static Public Member Functions | |
static final String | getSystemEnvLibraryPathVarname () |
Returns the system's environment variable name used for the dynamic linker to resolve library locations, e.g. More... | |
static final List< String > | getSystemEnvLibraryPaths () |
Returns a list of system paths, from the getSystemEnvLibraryPathVarname() variable. More... | |
static synchronized boolean | isLoaded (final String libName) |
static synchronized boolean | loadLibrary (final String libname, final boolean ignoreError, final ClassLoader cl) throws SecurityException, UnsatisfiedLinkError |
Loads the library specified by libname. More... | |
static synchronized void | loadLibrary (final String libname, final String[] preload, final boolean preloadIgnoreError, final ClassLoader cl) throws SecurityException, UnsatisfiedLinkError |
Loads the library specified by libname. More... | |
static final String | findLibrary (final String libName, final ClassLoader loader) |
static final String | isValidNativeLibraryName (final String libName, final boolean isLowerCaseAlready) |
Comparison of prefix and suffix of the given libName's basename is performed case insensitive More... | |
static final List< String > | enumerateLibraryPaths (final String libName, final boolean searchSystemPath, final boolean searchSystemPathFirst, final ClassLoader loader) |
Given the base library names (no prefixes/suffixes) for the various platforms, enumerate the possible locations and names of the indicated native library on the system using the system path. More... | |
static final List< String > | enumerateLibraryPaths (final String windowsLibName, final String unixLibName, final String macOSXLibName, final boolean searchSystemPath, final boolean searchSystemPathFirst, final ClassLoader loader) |
Given the base library names (no prefixes/suffixes) for the various platforms, enumerate the possible locations and names of the indicated native library on the system using the system path. More... | |
Static Public Attributes | |
static final boolean | DEBUG |
Static Protected Attributes | |
static final boolean | PERF |
static final Object | perfSync = new Object() |
static long | perfTotal = 0 |
static long | perfCount = 0 |
Static JNI Native Libraries handler.
Definition at line 47 of file JNILibrary.java.
|
static |
Given the base library names (no prefixes/suffixes) for the various platforms, enumerate the possible locations and names of the indicated native library on the system using the system path.
Definition at line 324 of file JNILibrary.java.
|
static |
Given the base library names (no prefixes/suffixes) for the various platforms, enumerate the possible locations and names of the indicated native library on the system using the system path.
Definition at line 336 of file JNILibrary.java.
|
static |
|
static |
Returns a list of system paths, from the getSystemEnvLibraryPathVarname()
variable.
Definition at line 135 of file JNILibrary.java.
|
static |
Returns the system's environment variable name used for the dynamic linker to resolve library locations, e.g.
Definition at line 130 of file JNILibrary.java.
|
static |
|
static |
Comparison of prefix and suffix of the given libName's basename is performed case insensitive
libName | the full path library name with prefix and suffix |
isLowerCaseAlready | indicates if libName is already lower-case |
Definition at line 295 of file JNILibrary.java.
|
static |
Loads the library specified by libname.
The implementation should ignore, if the library has been loaded already.
libname | the library to load |
ignoreError | if true, errors during loading the library should be ignored |
cl | optional ClassLoader, used to locate the library |
Definition at line 172 of file JNILibrary.java.
|
static |
Loads the library specified by libname.
Optionally preloads the libraries specified by preload.
The implementation should ignore, if any library has been loaded already.
libname | the library to load |
preload | the libraries to load before loading the main library if not null |
preloadIgnoreError | if true, errors during loading the preload-libraries should be ignored |
cl | optional ClassLoader, used to locate the library |
Definition at line 205 of file JNILibrary.java.
|
static |
Definition at line 48 of file JNILibrary.java.
|
staticprotected |
Definition at line 49 of file JNILibrary.java.
|
staticprotected |
Definition at line 120 of file JNILibrary.java.
|
staticprotected |
Definition at line 118 of file JNILibrary.java.
|
staticprotected |
Definition at line 119 of file JNILibrary.java.