Interface CommandManager<T,V>
-
- Type Parameters:
T- The execution contextV- The resulting violations of the command execution in the given context.
- All Known Implementing Classes:
CommandManagerImpl,DelegateCommandManager
public interface CommandManager<T,V>Manager to handle execution of commands in a given context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommandResult<V>allow(T context, Command<T,V> command)Check whether the given command can be executed.CommandResult<V>execute(T context, Command<T,V> command)Execute the given command.CommandResult<V>undo(T context, Command<T,V> command)Undo an executed command.
-