Interface NativeLibraryProperties
-
- All Known Implementing Classes:
SystemNativeLibraryProperties
public interface NativeLibraryProperties
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetArchitectureName()java.lang.StringgetExtractionPath()java.lang.StringgetLibraryDirectory()java.lang.StringgetLibraryFileNamePrefix()java.lang.StringgetLibraryFileNameSuffix()java.lang.StringgetLibraryPath()java.lang.StringgetSystemName()
-
-
-
Method Detail
-
getLibraryPath
java.lang.String getLibraryPath()
- Returns:
- Explicit filesystem path for the library. If this is set, this is loaded directly and no resource
extraction and/or system name detection is performed. If this returns
null, library directory is checked next.
-
getLibraryDirectory
java.lang.String getLibraryDirectory()
- Returns:
- Explicit directory containing the native library. The specified directory must contain the system name
directories, thus the library to be loaded is actually located at
directory/{systemName}/{libPrefix}{libName}{libSuffix}. If this returnsnull, thenNativeLibraryBinaryProvider.getLibraryStream(SystemType, String)is called to obtain the stream to the library file, which is then written to disk for loading.
-
getExtractionPath
java.lang.String getExtractionPath()
- Returns:
- Base directory where to write the library if it is obtained through
NativeLibraryBinaryProvider.getLibraryStream(SystemType, String). The library file itself will actually be written to a subdirectory with a randomly generated name. The specified directory does not have to exist, but in that case the current process must have privileges to create it. If this returnsnull, then{tmpDir}/lava-jni-nativesis used.
-
getSystemName
java.lang.String getSystemName()
- Returns:
- System name. If this is set, no operating system or architecture detection is performed.
-
getLibraryFileNamePrefix
java.lang.String getLibraryFileNamePrefix()
- Returns:
- Library file name prefix to use. Only used when
getSystemName()is provided.
-
getLibraryFileNameSuffix
java.lang.String getLibraryFileNameSuffix()
- Returns:
- Library file name suffix to use. Only used when
getSystemName()is provided.
-
getArchitectureName
java.lang.String getArchitectureName()
- Returns:
- Architecture name to use. If this is set, operating system detection is still performed.
-
-