Class CommandService


  • public final class CommandService
    extends Object
    State machine for command execution.

    NB. Not fully type safe on generic types.

    • Method Detail

      • getStartCommandClass

        public Class getStartCommandClass()
      • getTransitions

        public com.google.common.collect.ImmutableMap<Class,​Class> getTransitions()
      • getRegisteredCommands

        public com.google.common.collect.ImmutableSet<Class> getRegisteredCommands()
      • executeCommands

        public void executeCommands​(ICommandServiceData commandServiceData)
        Executes the commands described by the given commandServiceData, and runs the clean up command if present.
        Parameters:
        commandServiceData - the service data that describes the commands state transitions.