org.fishbolt.common.command
Interface ICommandProcessor


public interface ICommandProcessor

Responsible for the command execution.


Method Summary
<R> R
processCommand(java.util.concurrent.Callable<R> command)
          This method gets an instance of a command as an argument and invokes its call() method.
 

Method Detail

processCommand

<R> R processCommand(java.util.concurrent.Callable<R> command)
This method gets an instance of a command as an argument and invokes its call() method. All operations responsible for management of resources are encapsulated exactly in the method.

Type Parameters:
R - command result type
Parameters:
command - command to be executed.
Returns:
Command execution result.