[ 
https://issues.apache.org/jira/browse/DIRMINA-847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Saeid Mirzaei updated DIRMINA-847:
----------------------------------

    Attachment: onEntryExitPatch.diff.gz

Patch for onEntry on Exit pattern
patched using svn diff
relative to revision 1157124

> 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
>         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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to