public final class NativeSupport extends Object
System.loadLibrary
method. In some situations, you may want to override this behavior. For
example, when using JNLua as an OSGi bundle, the native library is loaded by
the OSGi runtime. Therefore, the OSGi bundle activator replaces the loader by
a no-op implementaion. Note that the loader must be configured before
LuaState is accessed.Modifier and Type | Class and Description |
---|---|
static interface |
NativeSupport.Loader
Loads the library.
|
Modifier and Type | Method and Description |
---|---|
static NativeSupport |
getInstance()
Returns the instance.
|
NativeSupport.Loader |
getLoader()
Return the native library loader.
|
void |
setLoader(NativeSupport.Loader loader)
Sets the native library loader.
|
public static NativeSupport getInstance()
public NativeSupport.Loader getLoader()
public void setLoader(NativeSupport.Loader loader)
loader
- the loader