| java.lang.Object org.apache.commons.scxml.NotificationRegistry
NotificationRegistry | final public class NotificationRegistry implements Serializable(Code) | | The registry where SCXML listeners are recorded for nodes of
interest such as the SCXML root,
TransitionTarget s and Transition s.
The notification registry keeps track of all
SCXMLListener s attached and notifies relevant
listeners of the events that interest them.
|
Method Summary | |
synchronized void | addListener(Object source, SCXMLListener lst) Register this SCXMLListener for this Observable. | public void | fireOnEntry(TransitionTarget observable, TransitionTarget state) Inform all relevant listeners that a TransitionTarget has been
entered. | public void | fireOnEntry(SCXML observable, TransitionTarget state) Inform all relevant listeners that a TransitionTarget has been
entered. | public void | fireOnExit(TransitionTarget observable, TransitionTarget state) Inform all relevant listeners that a TransitionTarget has been
exited. | public void | fireOnExit(SCXML observable, TransitionTarget state) Inform all relevant listeners that a TransitionTarget has been
exited. | public void | fireOnTransition(Transition observable, TransitionTarget from, TransitionTarget to, Transition transition) Inform all relevant listeners of a transition that has occured. | public void | fireOnTransition(SCXML observable, TransitionTarget from, TransitionTarget to, Transition transition) Inform all relevant listeners of a transition that has occured. | synchronized void | removeListener(Object source, SCXMLListener lst) Deregister this SCXMLListener for this Observable. |
NotificationRegistry | public NotificationRegistry()(Code) | | Constructor.
|
addListener | synchronized void addListener(Object source, SCXMLListener lst)(Code) | | Register this SCXMLListener for this Observable.
Parameters: source - The observable this listener wants to listen to Parameters: lst - The listener |
fireOnEntry | public void fireOnEntry(TransitionTarget observable, TransitionTarget state)(Code) | | Inform all relevant listeners that a TransitionTarget has been
entered.
Parameters: observable - The Observable Parameters: state - The TransitionTarget that was entered |
fireOnEntry | public void fireOnEntry(SCXML observable, TransitionTarget state)(Code) | | Inform all relevant listeners that a TransitionTarget has been
entered.
Parameters: observable - The Observable Parameters: state - The TransitionTarget that was entered |
fireOnExit | public void fireOnExit(TransitionTarget observable, TransitionTarget state)(Code) | | Inform all relevant listeners that a TransitionTarget has been
exited.
Parameters: observable - The Observable Parameters: state - The TransitionTarget that was exited |
fireOnExit | public void fireOnExit(SCXML observable, TransitionTarget state)(Code) | | Inform all relevant listeners that a TransitionTarget has been
exited.
Parameters: observable - The Observable Parameters: state - The TransitionTarget that was exited |
fireOnTransition | public void fireOnTransition(Transition observable, TransitionTarget from, TransitionTarget to, Transition transition)(Code) | | Inform all relevant listeners of a transition that has occured.
Parameters: observable - The Observable Parameters: from - The source TransitionTarget Parameters: to - The destination TransitionTarget Parameters: transition - The Transition that was taken |
fireOnTransition | public void fireOnTransition(SCXML observable, TransitionTarget from, TransitionTarget to, Transition transition)(Code) | | Inform all relevant listeners of a transition that has occured.
Parameters: observable - The Observable Parameters: from - The source TransitionTarget Parameters: to - The destination TransitionTarget Parameters: transition - The Transition that was taken |
removeListener | synchronized void removeListener(Object source, SCXMLListener lst)(Code) | | Deregister this SCXMLListener for this Observable.
Parameters: source - The observable this listener wants to stop listening to Parameters: lst - The listener |
|
|