[
https://issues.apache.org/jira/browse/DIRMINA-847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Lecharny resolved DIRMINA-847.
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.5
The patch has been applied with
http://svn.apache.org/viewvc?rev=1359127&view=rev
Sorry for the delay and thanks for the suggestion !
> 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
> Fix For: 2.0.5
>
> Attachments: onEntryExitPatch.diff.gz, onEntryExitPatch.tar.gz,
> onEntryExitPatch.tar.gz
>
> Original Estimate: 10h
> Remaining Estimate: 10h
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira