WB - The WaveBean type used for this command (by default you can use the WaveBean interface)public abstract class AbstractBaseCommand<WB extends WaveBean> extends AbstractWaveReady<Command> implements CommandBean<WB>
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER
The class logger.
|
private RunType |
runIntoThread
The field that indicates how this command must be launched.
|
private RunnablePriority |
runnablePriority
The field that indicates the threading priority.
|
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 |
|---|
AbstractBaseCommand()
Default constructor.
|
AbstractBaseCommand(RunType runType,
RunnablePriority priority)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
afterPerform(Wave wave)
Actions to perform after the command into the executor thread.
|
protected abstract void |
beforePerform(Wave wave)
Actions to perform before the command into the executor thread.
|
protected void |
finalize() |
protected void |
fireConsumed(Wave wave)
Fire a consumed event for command listeners.
|
protected void |
fireFailed(Wave wave)
Fire a failed event for command listeners.
|
protected RunType |
getRunInto() |
protected RunnablePriority |
getRunnablePriority() |
WB |
getWaveBean(Wave wave)
Get the wave bean and cast it.
|
(package private) void |
innerRun(Wave wave)
Run the inner task.
|
protected abstract void |
perform(Wave wave)
Perform the command code.
|
protected void |
processWave(Wave wave)
Process the wave.
|
Wave |
run()
Run the command.
|
Wave |
run(Wave wave)
Run the command.
|
attachUi, callCommand, callCommand, getReturnCommand, getReturnWaveType, listen, listen, listen, ready, 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 static final org.slf4j.Logger LOGGER
private final RunType runIntoThread
private RunnablePriority runnablePriority
public AbstractBaseCommand()
public AbstractBaseCommand(RunType runType, RunnablePriority priority)
runType - the way to launch this commandpriority - the runnable priorityprotected abstract void perform(Wave wave) throws CommandException
wave - the wave that contain data to be processedCommandException - if an error occurred while processing the commandprotected void processWave(Wave wave)
processWave in class AbstractWaveReady<Command>wave - the wave receivedpublic final Wave run()
final void innerRun(Wave wave) throws CommandException
wave - the wave that have triggered this commandCommandException - if an error occurredprotected abstract void beforePerform(Wave wave)
wave - the wave that triggered this commandprotected abstract void afterPerform(Wave wave)
wave - the wave that triggered this commandprotected final RunType getRunInto()
protected final RunnablePriority getRunnablePriority()
protected void finalize()
throws Throwable
public WB getWaveBean(Wave wave)
getWaveBean in interface CommandgetWaveBean in interface CommandBean<WB extends WaveBean>wave - the wave that hold the beanprotected void fireConsumed(Wave wave)
wave - forward the wave that has been performedprotected void fireFailed(Wave wave)
wave - forward the wave that has been performedCopyright © 2011–2014 JRebirth OSS. All rights reserved.