info.joseluismartin.cmd
Interface Command

All Known Subinterfaces:
Task
All Known Implementing Classes:
DefaultCommand, DefaultTask

public interface Command

Commmand interface for Command Design Pattern (GoF)

Author:
Jose Luis Martin - (chelu.es@gmail.com)

Method Summary
 boolean execute(Object data)
          The Command Action
 String getName()
           
 void onFault(Object data)
          Notify Command object that some fault ocurred on a command list
 void undo()
          Undo the command, false if fail
 

Method Detail

execute

boolean execute(Object data)
The Command Action

Parameters:
data - generic command data
Returns:
true if command sucess
Throws:
CommandException

onFault

void onFault(Object data)
Notify Command object that some fault ocurred on a command list

Parameters:
data - generic command data

undo

void undo()
Undo the command, false if fail


getName

String getName()
Returns:
the command name


Copyright © 2012 JDAL. All Rights Reserved.