[arquillian-issues] [JBoss JIRA] Created: (ARQ-380) Core should support AroundInvoke style handlers of Events
Aslak Knutsen (JIRA)
jira-events at lists.jboss.org
Fri Mar 11 10:06:45 EST 2011
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