Package adams.core.management
Interface RestartableApplication
-
- All Superinterfaces:
Destroyable,OptionHandler
- All Known Implementing Classes:
AbstractApplicationFrame,Main
public interface RestartableApplication extends OptionHandler
For applications that can be restarted via the Launcher class.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
Launcher
-
-
Field Summary
Fields Modifier and Type Field Description static StringFLAG_ENABLE_RESTARTthe command-line flag for enabling restarting.static StringOPTION_ENABLE_RESTARTthe option for enabling restarting.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringenableRestartTipText()Returns the tip text for this property.booleangetEnableRestart()Returns whether to enable the restart through the Launcher.voidsetEnableRestart(boolean value)Sets whether to enable the restart through the Launcher.-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
-
-
-
Field Detail
-
OPTION_ENABLE_RESTART
static final String OPTION_ENABLE_RESTART
the option for enabling restarting.- See Also:
- Constant Field Values
-
FLAG_ENABLE_RESTART
static final String FLAG_ENABLE_RESTART
the command-line flag for enabling restarting.- See Also:
- Constant Field Values
-
-
Method Detail
-
setEnableRestart
void setEnableRestart(boolean value)
Sets whether to enable the restart through the Launcher.- Parameters:
value- true if to enable restart via Launcher class
-
getEnableRestart
boolean getEnableRestart()
Returns whether to enable the restart through the Launcher.- Returns:
- true if restart is enabled
-
enableRestartTipText
String enableRestartTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
-