public abstract class AbstractCommand extends Object implements Command
Command that most implementations should
extend. By default, any extension of this class will require Storage,
and be available both in and out of the Thermostat shell.
Concrete implementations must be registered as OSGi services with
Command as the class. This may be done through a
CommandRegistry.
| Constructor and Description |
|---|
AbstractCommand() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStorageRequired()
Whether the command depends on
Storage |
void |
requireNonNull(Object obj,
LocalizedString message) |
public boolean isStorageRequired()
CommandStorageisStorageRequired in interface CommandStorage is required.public void requireNonNull(Object obj, LocalizedString message) throws CommandException
CommandExceptionCopyright © 2015. All rights reserved.