public abstract class LifecycleManager extends Object
Modifier | Constructor and Description |
---|---|
protected |
LifecycleManager()
Subclass constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 honoredBuilt on July 21 2012. | Portions Copyright 1997-2012 Sun Microsystems, Inc. All rights reserved.