qflib 0.98.0

de.qfs.lib.command
Interface CommandHandler


public interface CommandHandler

This is the interface through wich Commands that do not implement the Invokable interface get executed. CommandHandlers may be registered with a CommandDistributor who will pass Commands to the handler's handleCommand method. If a CommandHandler does handle a command it must call setHandled on the command.

Version:
$Revision: 1.3 $
Author:
Gregor Schmid

Method Summary
 java.lang.Object handleCommand(Command command)
          (Possibly) handle a command.
 

Method Detail

handleCommand

public java.lang.Object handleCommand(Command command)
                               throws CommandException
(Possibly) handle a command. If the command gets handled, its setHandled method should be called.
Parameters:
command - The Command to handle.
Throws:
CommandException - If something specific to the execution of the command goes wrong.
See Also:
Command.setHandled(boolean)

qflib 0.98.0