public class DynamicLibraryBundle extends Object implements DynamicLookupHelper
DynamicLookupHelper
to reset
the ProcAddressTable
.NativeLibrary's open method
Glue native library
GetProcAddress
. (optional)Modifier and Type | Field and Description |
---|---|
protected static boolean |
DEBUG |
protected static boolean |
DEBUG_LOOKUP |
protected List<NativeLibrary> |
nativeLibraries |
Constructor and Description |
---|
DynamicLibraryBundle(DynamicLibraryBundleInfo info)
Instantiates and loads all
NativeLibrary s incl. |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Unload all
NativeLibrary s, and remove all references. |
long |
dynamicLookupFunction(String funcName)
Try to fetch the function pointer for function 'funcName'.
|
DynamicLibraryBundleInfo |
getBundleInfo() |
int |
getGlueLibLoadedNumber() |
int |
getGlueLibNumber() |
protected long |
getToolGetProcAddressHandle() |
int |
getToolLibLoadedNumber() |
int |
getToolLibNumber() |
boolean |
isGlueLibComplete() |
boolean |
isGlueLibLoaded(int i) |
boolean |
isLibComplete() |
boolean |
isToolLibComplete() |
boolean |
isToolLibLoaded() |
boolean |
isToolLibLoaded(int i) |
protected NativeLibrary |
loadFirstAvailable(List<String> libNames,
ClassLoader loader,
boolean global) |
protected static final boolean DEBUG
protected static final boolean DEBUG_LOOKUP
protected List<NativeLibrary> nativeLibraries
public DynamicLibraryBundle(DynamicLibraryBundleInfo info)
NativeLibrary
s incl. JNI libraries.public void destroy()
NativeLibrary
s, and remove all references.public final boolean isLibComplete()
public final int getToolLibNumber()
public final int getToolLibLoadedNumber()
public final boolean isToolLibComplete()
DynamicLibraryBundleInfo.getToolLibNames()
public final boolean isToolLibLoaded()
public final boolean isToolLibLoaded(int i)
public final int getGlueLibNumber()
public final int getGlueLibLoadedNumber()
public final boolean isGlueLibComplete()
DynamicLibraryBundleInfo.getGlueLibNames()
public final boolean isGlueLibLoaded(int i)
public final DynamicLibraryBundleInfo getBundleInfo()
protected long getToolGetProcAddressHandle()
protected NativeLibrary loadFirstAvailable(List<String> libNames, ClassLoader loader, boolean global)
public long dynamicLookupFunction(String funcName)
DynamicLookupHelper
dynamicLookupFunction
in interface DynamicLookupHelper