|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.shale.dialog.base.AbstractDialogListener
public abstract class AbstractDialogListener
Convenience abstract DialogListener
implementation. Subclasses
are expected to be serializable.
Constructor Summary | |
---|---|
AbstractDialogListener()
|
Method Summary | |
---|---|
DialogContext |
getDialogContext()
Return the |
void |
onEntry(String stateId)
Handle an entry into a dialog state. |
void |
onException(Exception e)
Handle an unexpected failure during the execution of this dialg instance. |
void |
onExit(String stateId)
Handle an exit from a dialog state. |
void |
onStart()
Handle the starting of the dialog instance. |
void |
onStop()
Handle the stopping of the dialog instance. |
void |
onTransition(String fromStateId,
String toStateId)
Handle a transition being followed. |
void |
setDialogContext(DialogContext dialogContext)
Set the |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDialogListener()
Method Detail |
---|
public void onStart()
Handle the starting of the dialog instance.
onStart
in interface DialogListener
DialogListener.onStart()
public void onStop()
Handle the stopping of the dialog instance.
onStop
in interface DialogListener
DialogListener.onStop()
public void onException(Exception e)
Handle an unexpected failure during the execution of this dialg instance.
onException
in interface DialogListener
e
- A potentially implementation specific exception
during the execution of this dialog instanceDialogListener.onException(java.lang.Exception)
public void onEntry(String stateId)
Handle an entry into a dialog state.
onEntry
in interface DialogListener
stateId
- Implementation specific identifier of the state
that has been enteredDialogListener.onEntry(java.lang.String)
public void onExit(String stateId)
Handle an exit from a dialog state.
onExit
in interface DialogListener
stateId
- Implementation specific identifier of the state
that has been exitedDialogListener.onExit(java.lang.String)
public void onTransition(String fromStateId, String toStateId)
Handle a transition being followed.
onTransition
in interface DialogListener
fromStateId
- Implementation specific identifier of the source
state for the transition that has been followedtoStateId
- Implementation specific identifier of the target
state for the transition that has been followedDialogListener.onTransition(java.lang.String,java.lang.String)
public DialogContext getDialogContext()
Return the DialogContext
instance associated with this
DialogListener
.
getDialogContext
in interface DialogListener
DialogContext
whose execution we are listening toDialogListener.getDialogContext()
public void setDialogContext(DialogContext dialogContext)
Set the DialogContext
instance associated with this
DialogListener
.
setDialogContext
in interface DialogListener
dialogContext
- The DialogContext
whose execution we
will trackDialogListener.setDialogContext(org.apache.shale.dialog.DialogContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |