public final class JavetLibLoader
extends java.lang.Object
It accepts a listener which can specify: (1) To deploy the JNI library to a custom location to work around the permission issues. (2) To skip the JNI library deployment to improve the performance and reduce the jar file size.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LIB_VERSION
The constant LIB_VERSION.
|
Constructor and Description |
---|
JavetLibLoader(JSRuntimeType jsRuntimeType)
Instantiates a new Javet lib loader.
|
Modifier and Type | Method and Description |
---|---|
JSRuntimeType |
getJSRuntimeType()
Gets js runtime type.
|
java.lang.String |
getLibFileName()
Gets lib file name.
|
static IJavetLibLoadingListener |
getLibLoadingListener()
Gets lib loading listener.
|
java.lang.String |
getResourceFileName()
Gets resource file name.
|
boolean |
isLoaded()
Is loaded.
|
void |
load()
Load.
|
static void |
setLibLoadingListener(IJavetLibLoadingListener libLoadingListener)
Sets lib loading listener.
|
public static final java.lang.String LIB_VERSION
public JavetLibLoader(JSRuntimeType jsRuntimeType)
jsRuntimeType
- the js runtime typepublic static IJavetLibLoadingListener getLibLoadingListener()
public static void setLibLoadingListener(IJavetLibLoadingListener libLoadingListener)
libLoadingListener
- the lib loading listenerpublic JSRuntimeType getJSRuntimeType()
public java.lang.String getLibFileName() throws JavetException
JavetException
- the javet exceptionpublic java.lang.String getResourceFileName() throws JavetException
JavetException
- the javet exceptionpublic boolean isLoaded()
public void load() throws JavetException
JavetException
- the javet exception