com.googlecode.jpattern.core.command
Class NullCommand

java.lang.Object
  extended by com.googlecode.jpattern.core.command.ICommand
      extended by com.googlecode.jpattern.core.command.NullCommand
All Implemented Interfaces:
Serializable

public class NullCommand
extends ICommand

Author:
Francesco Cina' 27/feb/2011
See Also:
Serialized Form

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

Constructor Detail

NullCommand

public NullCommand()
Method Detail

exec

public ICommandResult exec(ICommandExecutor asyncCommandPool)
Description copied from class: ICommand
This method launch the execution of the command (or chain of commands). Every command in the chain will be managed by an ICommandExecutor object

Specified by:
exec in class ICommand
Parameters:
asyncCommandPool - the pool in which the command will runs
Returns:
the result of the execution

exec

public ICommandResult exec()
Description copied from class: ICommand
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());

Specified by:
exec in class ICommand
Returns:
the result of the execution

visit

public void visit(IProvider provider)
Specified by:
visit in class ICommand


Copyright © 2011. All Rights Reserved.