public abstract class DelegateCommandManager<C,V> extends Object implements CommandManager<C,V>
Constructor and Description |
---|
DelegateCommandManager() |
Modifier and Type | Method and Description |
---|---|
CommandResult<V> |
allow(C context,
Command<C,V> command)
Check whether the given command can be executed.
|
CommandResult<V> |
execute(C context,
Command<C,V> command)
Execute the given command.
|
protected abstract CommandManager<C,V> |
getDelegate() |
protected void |
postAllow(C context,
Command<C,V> command,
CommandResult<V> result) |
protected void |
postExecute(C context,
Command<C,V> command,
CommandResult<V> result) |
protected void |
postUndo(C context,
Command<C,V> command,
CommandResult<V> result) |
protected void |
preAllow(C context,
Command<C,V> command) |
protected void |
preExecute(C context,
Command<C,V> command) |
protected void |
preUndo(C context,
Command<C,V> command) |
CommandResult<V> |
undo(C context,
Command<C,V> command)
Undo an executed command.
|
protected abstract CommandManager<C,V> getDelegate()
public CommandResult<V> allow(C context, Command<C,V> command)
CommandManager
allow
in interface CommandManager<C,V>
public CommandResult<V> execute(C context, Command<C,V> command)
CommandManager
execute
in interface CommandManager<C,V>
public CommandResult<V> undo(C context, Command<C,V> command)
CommandManager
undo
in interface CommandManager<C,V>
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.