D
- the generic type extending BehaviorData
public abstract class AbstractBehavior<D extends BehaviorData,C extends BehavioredComponent<C>> extends AbstractComponent<Behavior<?,?>> implements Behavior<D,C>
Behavior
interface.innerComponentMap, PROCESS_WAVE_METHOD_NAME, rootComponent
booleanItem, byteItem, characterItem, classItem, doubleItem, exceptionItem, floatItem, integerItem, longItem, shortItem, stringItem, voidItem
ADD_BEHAVIOR, CALL_ANNOTATED_METHOD_ERROR, COMMAND_NOT_FOUND_ERROR, COMMAND_NOT_FOUND_MESSAGE, COMPONENT_INJECTION_FAILURE, COMPONENT_RELEASE_ERROR, CUSTOM_METHOD_NOT_FOUND, LISTEN_WAVE_TYPE, MODEL_NOT_FOUND_ERROR, MODEL_NOT_FOUND_MESSAGE, NO_WAVE_LISTENER, NOTIFIER_CONSUMES, NOTIFIER_HANDLES, SEND_WAVE, SERVICE_NOT_FOUND_ERROR, SERVICE_NOT_FOUND_MESSAGE, UNLISTEN_WAVE_TYPE, WAVE_BEAN_CREATION_ERROR, WAVE_DISPATCH_ERROR, WAVE_HANDLING_ERROR, WAVE_LOST, WAVE_LOST_CONTEXT, WAVE_SENDING_ERROR
Constructor and Description |
---|
AbstractBehavior() |
Modifier and Type | Method and Description |
---|---|
C |
component()
Gets the
EnhancedComponent concerned by this Behavior. |
D |
data()
Gets the
BehaviorData used by this Behavior. |
protected abstract void |
initBehavior()
Inits the behavior.
|
protected void |
initInnerComponents()
Initialize method that should wrap all creation of
InnerComponent . |
protected void |
manageOptionalData() |
protected void |
processWave(Wave wave)
Process the wave.
|
protected void |
ready()
The component is now ready to do custom initialization tasks.
|
attachUi, callCommand, callCommand, findInnerComponent, getInnerComponentMap, initInternalInnerComponents, listen, listen, listen, release, returnData, rootComponent, rootComponent, sendWave, sendWave, sendWave, setup, unlisten
getCommand, getCommand, getCommands, getCommands, getFirstKeyPart, getKeyPart, getListKeyPart, getModel, getModel, getModels, getModels, getSecondKeyPart, getService, getService, getServices, getServices, getThirdKeyPart, key, key, localFacade, localFacade
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findInnerComponent, listen, listen, listen, rootComponent, rootComponent, sendWave, sendWave, sendWave, unlisten
key, key, localFacade, localFacade, release, setup
attachUi, getModel, getModel, getModels, getModels
getService, getService, getServices, getServices, returnData
callCommand, callCommand, getCommand, getCommand, getCommands, getCommands
public AbstractBehavior()
public D data()
BehaviorData
used by this Behavior.data
in interface Behavior<D extends BehaviorData,C extends BehavioredComponent<C>>
public C component()
EnhancedComponent
concerned by this Behavior.component
in interface Behavior<D extends BehaviorData,C extends BehavioredComponent<C>>
protected void processWave(Wave wave)
processWave
in class AbstractComponent<Behavior<?,?>>
wave
- the wave receivedprotected void ready() throws CoreException
ready
in class AbstractComponent<Behavior<?,?>>
CoreException
- if an error occurredprotected void manageOptionalData()
manageOptionalData
in class AbstractComponent<Behavior<?,?>>
protected void initInnerComponents()
InnerComponent
.
It shall contain only EnhancedComponent
.addInnerComponent calls.initInnerComponents
in class AbstractComponent<Behavior<?,?>>
protected abstract void initBehavior()
Copyright © 2011–2016 JRebirth OSS. All rights reserved.