org.fishbolt.common.command
Interface ICommand<V>
- Type Parameters:
V - the result type of method call
- All Superinterfaces:
- java.util.concurrent.Callable<V>
public interface ICommand<V>
- extends java.util.concurrent.Callable<V>
In the case if some command delegates the execution to the other command
you should not explicitly invoke the call() method.
It will be more correct to execute the command using the processor,
because it is responsible for managing recourses.
| Methods inherited from interface java.util.concurrent.Callable |
call |
setCommandProcessor
void setCommandProcessor(ICommandProcessor processor)
- Has to be called by the processor just before the call of
the command (the
call() method). Thus, the command "knows" about an
instance of the processor that is executing it and is able to correctly
delegate the call to the other command.
- Parameters:
processor - which executes command