|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IControllerCommand
A ControllerCommand is a command targeted to a controller.
Only commands implementing this interface can be executed by the ExecutionEngine. The interface defines methods concerning command execution. For that the implementing class must provide the controller to which it is targeted as well as some callback methods which get called when the command is finished.
| Method Summary | |
|---|---|
void |
acquireResources(ICommandContainer container)
Asks the command to acquire it's resources that are needed for execution. |
Controller |
getController()
Gets the controller to which the command is targeted. |
ICommandRuntimeData |
getRuntimeData()
Gets the runtime data object associated with the command. |
void |
releaseResources(ICommandContainer container)
Tells the command to release it's resources. |
| Method Detail |
|---|
Controller getController()
null is not allowed!
void acquireResources(ICommandContainer container)
throws InterruptedException
This method can block until the resources are available. The method is called before the command is passed to the controller. Implementing classes should throw an exception if preparation fails.
container - The container which will be used for the execution of the
command.
InterruptedException - The method may throw an InterruptedException if waiting was
interrupted.void releaseResources(ICommandContainer container)
container - The container which was used for the execution of the command.ICommandRuntimeData getRuntimeData()
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||