com.stellent.cis.client.command
Interface ICommandExecutor

All Known Implementing Classes:
CommandInvokerBean

public interface ICommandExecutor

Interface for the object that can execute a command. This object is responsible for calling the ICommand.execute() method, providing the correct ICommandExecutionContext, and handling errors that might occur during processing.


Method Summary
 java.lang.Object executeCommand(ICommand command)
          Execute the given command on the default configured adapter.
 boolean isLocalInvocation()
           
 

Method Detail

executeCommand

java.lang.Object executeCommand(ICommand command)
                                throws CommandException
Execute the given command on the default configured adapter.

Parameters:
command - the populated command object
Returns:
the command return value (might be null)
Throws:
CommandException

isLocalInvocation

boolean isLocalInvocation()
Returns:
true if the commands are being executed locally (i.e. on the same JVM)