public abstract class AbstractStateNotifyingCommand extends AbstractCommand
Command
implementation including all the default functionality of
AbstractCommand
, but also contains an ActionNotifier
so that concrete implementations of this class can use this to provide updates with regards
to their runtime status to other components.
Concrete implementations must be registered as OSGi services with Command
as the
class.
Command
Constructor and Description |
---|
AbstractStateNotifyingCommand() |
Modifier and Type | Method and Description |
---|---|
ActionNotifier<ApplicationState> |
getNotifier() |
boolean |
isStorageRequired()
Whether the command depends on
Storage |
protected void |
setStorageRequired(boolean storageRequired) |
requireNonNull
public ActionNotifier<ApplicationState> getNotifier()
public boolean isStorageRequired()
Command
Storage
isStorageRequired
in interface Command
isStorageRequired
in class AbstractCommand
Storage
is required.protected void setStorageRequired(boolean storageRequired)
Copyright © 2016. All Rights Reserved.