|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.coi.tools.os.izpack.COIOSHelper
public class COIOSHelper
Base class to handle multiple native methods of multiple classes in one shared library. This is a singelton class.
Field Summary | |
---|---|
private static boolean |
destroyed
|
private boolean |
failed
|
private static COIOSHelper |
self
|
private static int |
used
|
Constructor Summary | |
---|---|
private |
COIOSHelper()
Default constructor, do not use |
Method Summary | |
---|---|
void |
addDependant(NativeLibraryClient dependant)
Add a NativeLibraryClient as dependant to this object. |
void |
freeLibrary(java.lang.String name)
|
private void |
FreeLibrary(java.lang.String name)
This method is used to free the library at the end of progam execution. |
static COIOSHelper |
getInstance()
Returns the one existent object of this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static COIOSHelper self
private static int used
private static boolean destroyed
private boolean failed
Constructor Detail |
---|
private COIOSHelper()
Method Detail |
---|
private void FreeLibrary(java.lang.String name)
name
- the name of the library to free. Use only the name and extension but not the
path.public static COIOSHelper getInstance()
public void freeLibrary(java.lang.String name)
name
- public void addDependant(NativeLibraryClient dependant) throws java.lang.Exception
dependant
- to be added
java.lang.Exception
- if loadLibrary for the needed lib fails
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |