Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-380

Core should support AroundInvoke style handlers of Events

    Details

      Description

      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.

      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
        }
      }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                aslak Aslak Knutsen
                Reporter:
                aslak Aslak Knutsen
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: