public class SystemNativeLibraryProperties extends java.lang.Object implements NativeLibraryProperties
| Constructor and Description |
|---|
SystemNativeLibraryProperties(java.lang.String libraryName,
java.lang.String propertyPrefix) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getArchitectureName() |
java.lang.String |
getExtractionPath() |
java.lang.String |
getLibraryDirectory() |
java.lang.String |
getLibraryFileNamePrefix() |
java.lang.String |
getLibraryFileNameSuffix() |
java.lang.String |
getLibraryPath() |
java.lang.String |
getSystemName() |
public SystemNativeLibraryProperties(java.lang.String libraryName,
java.lang.String propertyPrefix)
public java.lang.String getLibraryPath()
getLibraryPath in interface NativeLibraryPropertiesnull, library directory
is checked next.public java.lang.String getLibraryDirectory()
getLibraryDirectory in interface NativeLibraryPropertiesdirectory/{systemName}/{libPrefix}{libName}{libSuffix}. If this returns null,
then NativeLibraryBinaryProvider.getLibraryStream(SystemType, String) is called to obtain the
stream to the library file, which is then written to disk for loading.public java.lang.String getExtractionPath()
getExtractionPath in interface NativeLibraryPropertiesNativeLibraryBinaryProvider.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 returns
null, then {tmpDir}/lava-jni-natives is used.public java.lang.String getSystemName()
getSystemName in interface NativeLibraryPropertiespublic java.lang.String getArchitectureName()
getArchitectureName in interface NativeLibraryPropertiespublic java.lang.String getLibraryFileNamePrefix()
getLibraryFileNamePrefix in interface NativeLibraryPropertiesNativeLibraryProperties.getSystemName() is provided.public java.lang.String getLibraryFileNameSuffix()
getLibraryFileNameSuffix in interface NativeLibraryPropertiesNativeLibraryProperties.getSystemName() is provided.