com.googlecode.jpattern.core.command
Class UnconditionalCommandExecutor

java.lang.Object
  extended by com.googlecode.jpattern.core.command.UnconditionalCommandExecutor
All Implemented Interfaces:
ICommandExecutor, Serializable

public class UnconditionalCommandExecutor
extends Object
implements ICommandExecutor

Author:
Francesco Cina' 27/feb/2011 This implementation of ICommandExecutor is a very simple executor which launches the execution in a Synchronous way. The next ICommand in the chain is executed even if the result of the previous ICommand is not valid.
See Also:
Serialized Form

Constructor Summary
UnconditionalCommandExecutor()
           
 
Method Summary
 void addCommandToPool(ACommand aCommand)
           
 boolean executeNext(ICommandResult result)
           
 IChainStrategy getChainStrategy()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnconditionalCommandExecutor

public UnconditionalCommandExecutor()
Method Detail

addCommandToPool

public void addCommandToPool(ACommand aCommand)
Specified by:
addCommandToPool in interface ICommandExecutor

executeNext

public boolean executeNext(ICommandResult result)
Specified by:
executeNext in interface ICommandExecutor

getChainStrategy

public IChainStrategy getChainStrategy()
Specified by:
getChainStrategy in interface ICommandExecutor


Copyright © 2011. All Rights Reserved.