com.googlecode.jpattern.core.command
Class ICommand
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ICommand
public ICommand()
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.