|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shale.dialog.base.AbstractDialogContextListener
public abstract class AbstractDialogContextListener
Convenience abstract DialogContextListener implementation. Subclasses
are expected to be serializable.
| Constructor Summary | |
|---|---|
AbstractDialogContextListener()
|
|
| Method Summary | |
|---|---|
DialogContext |
getDialogContext()
Return the |
void |
onEntry(java.lang.String stateId)
Handle an entry into a dialog state. |
void |
onException(java.lang.Exception e)
Handle an unexpected failure during the execution of this dialg instance. |
void |
onExit(java.lang.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(java.lang.String fromStateId,
java.lang.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 AbstractDialogContextListener()
| Method Detail |
|---|
public void onStart()
Handle the starting of the dialog instance.
onStart in interface DialogContextListenerDialogContextListener.onStart()public void onStop()
Handle the stopping of the dialog instance.
onStop in interface DialogContextListenerDialogContextListener.onStop()public void onException(java.lang.Exception e)
Handle an unexpected failure during the execution of this dialg instance.
onException in interface DialogContextListenere - A potentially implementation specific exception
during the execution of this dialog instanceDialogContextListener.onException(java.lang.Exception)public void onEntry(java.lang.String stateId)
Handle an entry into a dialog state.
onEntry in interface DialogContextListenerstateId - Implementation specific identifier of the state
that has been enteredDialogContextListener.onEntry(java.lang.String)public void onExit(java.lang.String stateId)
Handle an exit from a dialog state.
onExit in interface DialogContextListenerstateId - Implementation specific identifier of the state
that has been exitedDialogContextListener.onExit(java.lang.String)
public void onTransition(java.lang.String fromStateId,
java.lang.String toStateId)
Handle a transition being followed.
onTransition in interface DialogContextListenerfromStateId - 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 followedDialogContextListener.onTransition(java.lang.String,java.lang.String)public DialogContext getDialogContext()
Return the DialogContext instance associated with this
DialogContextListener.
getDialogContext in interface DialogContextListenerDialogContext whose execution we are listening toDialogContextListener.getDialogContext()public void setDialogContext(DialogContext dialogContext)
Set the DialogContext instance associated with this
DialogContextListener.
setDialogContext in interface DialogContextListenerdialogContext - The DialogContext whose execution we
will trackDialogContextListener.setDialogContext(org.apache.shale.dialog.DialogContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||