WB - The WaveBean type used for this command (by default you can use the WaveBean interface)public abstract class AbstractSingleCommand<WB extends WaveBean> extends AbstractBaseCommand<WB>
| Modifier and Type | Field and Description |
|---|---|
private AtomicBoolean |
running
The command is running.
|
PROCESS_WAVE_METHOD_NAMECALL_ANNOTATED_METHOD_ERROR, COMMAND_NOT_FOUND_ERROR, COMMAND_NOT_FOUND_MESSAGE, COMPONENT_INJECTION_FAILURE, CUSTOM_METHOD_NOT_FOUND, LISTEN_WAVE_TYPE, MODEL_NOT_FOUND_ERROR, MODEL_NOT_FOUND_MESSAGE, NO_WAVE_LISTENER, NOTIFIER_CONSUMES, SEND_WAVE, SERVICE_NOT_FOUND_ERROR, SERVICE_NOT_FOUND_MESSAGE, UNLISTEN_WAVE_TYPE, USE_DEFAULT_WAVE_HANDLER, WAVE_BEAN_CREATION_ERROR, WAVE_DISPATCH_ERROR, WAVE_HANDLING_ERROR, WAVE_LOST, WAVE_LOST_CONTEXT, WAVE_SENDING_ERROR| Constructor and Description |
|---|
AbstractSingleCommand()
Default constructor.
|
AbstractSingleCommand(RunType runInto)
Default constructor.
|
AbstractSingleCommand(RunType runInto,
RunnablePriority priority)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPerform(Wave wave)
Actions to perform after the command into the executor thread.
|
void |
beforePerform(Wave wave)
Actions to perform before the command into the executor thread.
|
protected abstract void |
initCommand()
Custom method used to initialize the command.
|
boolean |
isRunning() |
void |
ready()
The component is now ready to do custom initialization tasks.
|
finalize, fireConsumed, fireFailed, getRunInto, getRunnablePriority, getWaveBean, innerRun, perform, processWave, run, runattachUi, callCommand, callCommand, getReturnCommand, getReturnWaveType, listen, listen, listen, registerCallback, registerCallback, registerCallback, release, returnData, sendWave, sendWave, setup, unlistengetCommand, getFirstKeyPart, getKey, getListKeyPart, getLocalFacade, getModel, getSecondKeyPart, getService, getThirdKeyPart, setKey, setLocalFacadeclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReturnCommand, getReturnWaveType, listen, listen, listen, registerCallback, registerCallback, registerCallback, sendWave, sendWave, unlistengetKey, getLocalFacade, release, setKey, setLocalFacade, setupattachUi, getModelgetService, returnDatacallCommand, callCommand, getCommandprivate final AtomicBoolean running
public AbstractSingleCommand()
public AbstractSingleCommand(RunType runInto)
runInto - the way to launch this commandpublic AbstractSingleCommand(RunType runInto, RunnablePriority priority)
runInto - the way to launch this commandpriority - the runnable prioritypublic final void ready()
throws CoreException
ready in class AbstractWaveReady<Command>CoreException - if an error occurredprotected abstract void initCommand()
public void beforePerform(Wave wave)
beforePerform in class AbstractBaseCommand<WB extends WaveBean>wave - the wave that triggered this commandpublic void afterPerform(Wave wave)
afterPerform in class AbstractBaseCommand<WB extends WaveBean>wave - the wave that triggered this commandpublic boolean isRunning()
Copyright © 2011–2014 JRebirth OSS. All rights reserved.