public class ServiceCommand extends AbstractCommand implements ActionListener<ApplicationState>
| Constructor and Description |
|---|
ServiceCommand(org.osgi.framework.BundleContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent<ApplicationState> actionEvent) |
boolean |
isAvailableInShell()
Whether the command is available to be invoked from within the shell.
|
boolean |
isStorageRequired()
Whether the command depends on
Storage |
void |
run(CommandContext ctx)
Execute the command.
|
isAvailableOutsideShellpublic void run(CommandContext ctx) throws CommandException
Commandcom.redhat.thermostat.launcher.Launcher will
present the exception message to the user.run in interface CommandCommandExceptionpublic void actionPerformed(ActionEvent<ApplicationState> actionEvent)
actionPerformed in interface ActionListener<ApplicationState>public boolean isAvailableInShell()
CommandisAvailableInShell in interface CommandisAvailableInShell in class AbstractCommandpublic boolean isStorageRequired()
CommandStorageisStorageRequired in interface CommandisStorageRequired in class AbstractCommandStorage is required.Copyright © 2013. All Rights Reserved.