Entry and Exit action support for Mina state machine
----------------------------------------------------
Key: DIRMINA-847
URL: https://issues.apache.org/jira/browse/DIRMINA-847
Project: MINA
Issue Type: Improvement
Components: Statemachine
Affects Versions: 2.0.4
Reporter: Saeid Mirzaei
Priority: Minor
In some situations it is much easier if you can execute an action when you
enter to or exit from a certain state regardless of which transition has caused
it.
else you have to repeat the behavior in each entering or exiting transition.
Here some more information could be found:
http://en.wikipedia.org/wiki/UML_state_machine#Entry_and_exit_actions
here is a sample usage:
@onEntry(LOADED )
public void onEntryStart() {
System.out.println("On Start Entry");
}
@onExit(LOADED)
public void onEntryExit() {
System.out.println("On Start Exit");
}
I attach a candidate implementation.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira