|
org.openide.util 8.15.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openide.LifecycleManager
public abstract class LifecycleManager
Manages major aspects of the NetBeans lifecycle - currently saving all objects and exiting.
Constructor Summary | |
---|---|
protected |
LifecycleManager()
Subclass constructor. |
Method Summary | |
---|---|
abstract void |
exit()
Exit NetBeans. |
static LifecycleManager |
getDefault()
Get the default lifecycle manager. |
void |
markForRestart()
Request that the application restart immediately after next being shut down. |
abstract void |
saveAll()
Save all opened objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LifecycleManager()
Method Detail |
---|
public static LifecycleManager getDefault()
Lookup.getDefault()
but if no instance is
found there, a fallback instance is returned which behaves as follows:
saveAll()
does nothing
exit()
calls System.exit(int)
with an exit code of 0
public abstract void saveAll()
public abstract void exit()
System.exit(int)
fails, or if at least one component of the
system refuses to exit (because it cannot be properly shut down).
public void markForRestart() throws UnsupportedOperationException
exit()
to go ahead and restart now.
UnsupportedOperationException
- if this request cannot be honored
|
org.openide.util 8.15.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |