|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jogamp.common.os.DynamicLibraryBundle
public class DynamicLibraryBundle
Provides bundling of:
An DynamicLibraryBundleInfo instance is being passed in the constructor,
providing the required information about the tool and glue libraries.
The ClassLoader of it's implementation is also being used to help locating the native libraries.
DynamicLookupHelper
to reset
the ProcAddressTable.NativeLibrary's open methodGlue native libraryGetProcAddress. (optional)
| Field Summary | |
|---|---|
protected List<NativeLibrary> |
nativeLibraries
|
static boolean |
USE_CURRENT_THREAD_LIBLOADER
|
| Fields inherited from interface com.jogamp.common.os.DynamicLookupHelper |
|---|
DEBUG, DEBUG_LOOKUP |
| Constructor Summary | |
|---|---|
DynamicLibraryBundle(DynamicLibraryBundleInfo info)
Instantiates and loads all NativeLibrarys incl. |
|
| Method Summary | |
|---|---|
void |
destroy()
Unload all NativeLibrarys, and remove all references. |
long |
dynamicLookupFunction(String funcName)
Try to fetch the function pointer for function 'funcName'. |
DynamicLibraryBundleInfo |
getBundleInfo()
|
static RunnableExecutor |
getDefaultRunnableExecutor()
Returns an AWT-EDT RunnableExecutor implementation if AWT is available, otherwise RunnableExecutor.currentThreadExecutor. |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean USE_CURRENT_THREAD_LIBLOADER
protected List<NativeLibrary> nativeLibraries
| Constructor Detail |
|---|
public DynamicLibraryBundle(DynamicLibraryBundleInfo info)
NativeLibrarys incl. JNI libraries.
The ClassLoader of the DynamicLibraryBundleInfo implementation class
is being used to help locating the native libraries.
| Method Detail |
|---|
public static RunnableExecutor getDefaultRunnableExecutor()
RunnableExecutor implementation if AWT is available, otherwise RunnableExecutor.currentThreadExecutor.
public void destroy()
NativeLibrarys, 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||