com.googlecode.jpattern.core.command
Class ICommand

java.lang.Object
  extended by com.googlecode.jpattern.core.command.ICommand
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ACommand, NullCommand

public abstract class ICommand
extends Object
implements Serializable

Author:
Francesco Cina' 28/gen/2011
See Also:
Serialized Form

Constructor Summary
ICommand()
           
 
Method Summary
abstract  ICommandResult exec()
          This method launch the execution of the command (or chain of commands) using the default default Executor.
abstract  ICommandResult exec(ICommandExecutor aCommandExecutor)
          This method launch the execution of the command (or chain of commands).
abstract  void visit(IProvider provider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ICommand

public ICommand()
Method Detail

visit

public abstract void visit(IProvider provider)

exec

public abstract ICommandResult exec()
This method launch the execution of the command (or chain of commands) using the default default Executor. This command is the same of: exec(new ConditionalCommandExecutor());

Returns:
the result of the execution

exec

public abstract ICommandResult exec(ICommandExecutor aCommandExecutor)
This method launch the execution of the command (or chain of commands). Every command in the chain will be managed by an ICommandExecutor object

Parameters:
aCommandExecutor - the pool in which the command will runs
Returns:
the result of the execution


Copyright © 2011. All Rights Reserved.