@Plugin(name="Life cycle Demo Plugin", id="life-demo", description="Tester for startup/shutdown.", loadAtStart=false) public class LifeCyclePlugin extends ConsolePlugin
| Constructor and Description |
|---|
LifeCyclePlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize()
Called by the framework when the console starts, to initialize this plugin..
|
boolean |
restore(ComponentDescriptor storageBean,
boolean lastRound)
Called by the framework to restore this plugin configuration.
|
ComponentDescriptor |
save()
Called by the framework when this plugin configuration needs to be saved.
|
void |
shutdown()
Called by the framework when the graphical console is shut down.
|
void |
start()
Called by the framework when the console starts, after all plugins have been initialized.
|
void |
stop()
Called by the framework when the console shuts down, before the call to
ConsolePlugin.shutdown(). |
getConsole, getServices, propertiesChanged, setServicesProviderpublic void initialize()
ConsolePlugininitialize in class ConsolePluginpublic void start()
ConsolePluginstart in class ConsolePluginpublic void stop()
ConsolePluginConsolePlugin.shutdown().
May also be called interactively through the graphical console GUI. In that
case, the method will not be called on the console shutdown unless the ConsolePlugin.start()
method is invoked again.stop in class ConsolePluginpublic void shutdown()
ConsolePluginshutdown in class ConsolePluginpublic ComponentDescriptor save()
ConsolePluginsave in class ConsolePluginpublic boolean restore(ComponentDescriptor storageBean, boolean lastRound)
ConsolePluginrestore in class ConsolePluginstorageBean - JavaBean that holds configuration information.lastRound - True if this is the last call to this method, regardless of the return value.False if this method should be called again in the next round.Copyright © 2023 LSST. All rights reserved.