| Constructor and Description |
|---|
AbstractCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doPerform()
Performs this command, thereby creating some durable side effects.
|
protected abstract void |
doRevert()
Reverts any durable side effects of the
perform() method. |
protected abstract void |
doStart()
Starts this command.
|
void |
perform()
Performs this command, thereby creating some durable side effects.
|
void |
revert()
Reverts any durable side effects of the
Command.perform() method. |
protected abstract void doPerform()
throws Exception
revert() must get called.Exceptionprotected abstract void doRevert()
throws Exception
perform() method.
If this method fails with an exception, then the state of the system may
be corrupted.Exceptionprotected abstract void doStart()
throws Exception
doPerform() nor doRevert()
get called.Exceptionpublic final void perform()
throws Exception
CommandCommand.revert() must get called.public final void revert()
throws Exception
CommandCommand.perform() method.
If this method fails with an exception, then the state of the system may
be corrupted.Copyright © 2013–2016 Schlichtherle IT Services. All rights reserved.