[arquillian-issues] [JBoss JIRA] Resolved: (ARQ-380) Core should support AroundInvoke style handlers of Events

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Sun Mar 13 09:12:45 EDT 2011


     [ https://issues.jboss.org/browse/ARQ-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aslak Knutsen resolved ARQ-380.
-------------------------------

    Resolution: Done


> Core should support AroundInvoke style handlers of Events
> ---------------------------------------------------------
>
>                 Key: ARQ-380
>                 URL: https://issues.jboss.org/browse/ARQ-380
>             Project: Arquillian
>          Issue Type: Feature Request
>          Components: Base Implementation
>    Affects Versions: 1.0.0.Alpha4
>            Reporter: Aslak Knutsen
>            Assignee: Aslak Knutsen
>             Fix For: 1.0.0.Beta1
>
>
> Core needs to support registration of Interceptors of Events, not only Event handlers. This will allow for more controlled AroundInvoke operations, like Context Activations/Deactivation.
> {code}
> public void around(@Observes EventContext<EventType> context)
> {
>   try
>   {
>     // do something before
>     context.proceed(); // continue down the interceptor chain and eventually the handler list
>   }
>   finally 
>   {
>     // do something after
>   }
> }
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the arquillian-issues mailing list