public final class CommandService extends Object
NB. Not fully type safe on generic types.
| Modifier and Type | Class and Description |
|---|---|
static class |
CommandService.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CommandService.Builder |
builder() |
void |
executeCommands(ICommandServiceData commandServiceData)
Executes the commands described by the given
commandServiceData, and runs the clean up command if
present. |
ICommand<IBaseCommandData> |
getCleanUpCommand() |
com.google.common.collect.ImmutableSet<Class> |
getRegisteredCommands() |
Class |
getStartCommandClass() |
com.google.common.collect.ImmutableMap<Class,Class> |
getTransitions() |
public static CommandService.Builder builder()
public ICommand<IBaseCommandData> getCleanUpCommand()
public Class getStartCommandClass()
public com.google.common.collect.ImmutableSet<Class> getRegisteredCommands()
public void executeCommands(ICommandServiceData commandServiceData)
commandServiceData, and runs the clean up command if
present.commandServiceData - the service data that describes the commands state transitions.Copyright © 2016–2017. All rights reserved.