|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DialogListener
JavaBeans listener for a single instance of a Shale dialog.
IMPLEMENTATION NOTE - Implementations of this interface will be stored in session scope, so they should be serializable.
Method Summary | |
---|---|
DialogContext |
getDialogContext()
Return the DialogContext instance associated with this
DialogListener . |
void |
onEntry(String stateId)
Handle an entry into a dialog state. |
void |
onException(Exception exception)
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 DialogContext instance associated with this
DialogListener . |
Method Detail |
---|
void onStart()
Handle the starting of the dialog instance.
void onStop()
Handle the stopping of the dialog instance.
void onException(Exception exception)
Handle an unexpected failure during the execution of this dialg instance.
exception
- A potentially implementation specific exception
during the execution of this dialog instancevoid onEntry(String stateId)
Handle an entry into a dialog state.
stateId
- Implementation specific identifier of the state
that has been enteredvoid onExit(String stateId)
Handle an exit from a dialog state.
stateId
- Implementation specific identifier of the state
that has been exitedvoid onTransition(String fromStateId, String toStateId)
Handle a transition being followed.
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 followedDialogContext getDialogContext()
Return the DialogContext
instance associated with this
DialogListener
.
DialogContext
whose execution we are listening tovoid setDialogContext(DialogContext dialogContext)
Set the DialogContext
instance associated with this
DialogListener
.
dialogContext
- The DialogContext
whose execution we
will track
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |