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

Core should support AroundInvoke style handlers of Events

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 1.0.0.Alpha5
    • 1.0.0.Alpha4
    • Base Implementation
    • None

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

      Attachments

        Activity

          People

            aslak@redhat.com Aslak Knutsen
            aslak@redhat.com Aslak Knutsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: