|
TsBiff 1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--ts.biff.TerminateController
This class observes objects that implements the SafeTerminate interface. Objects should call the exit method in this class, instead of calling System.exit(), to do a controlled termination of the application.
SafeTerminate| Method Summary | |
static void |
add(SafeTerminate s)
Add an object to be controlled |
static boolean |
canExit()
Returns true if all objects managed by this controller agrees that it's safe to exit. |
static TerminateController |
createController()
Create the controller and return a reference to it. |
static void |
exit()
Do a controlled System.exit(0). |
static void |
exit(int status)
Do a controlled System.exit(n). |
static void |
remove(SafeTerminate s)
Remove an object from the controller |
void |
run()
Loop trough all objects managed by this controller and if it's safe to exit do a System.exit(0). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static TerminateController createController()
public static void add(SafeTerminate s)
A - SafeTerminate objectpublic static void remove(SafeTerminate s)
A - SafeTerminate objectpublic static boolean canExit()
public void run()
run in interface java.lang.Runnablepublic static void exit()
public static void exit(int status)
|
TsBiff 1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||