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

The precedence for BeforeDroneInstantiated event observation in DroneInstanceCreator is set badly

    XMLWordPrintable

Details

    Description

      The problem is in DroneInstanceCreator.createDroneInstance method

      public void createDroneInstance(@Observes(precedence = Integer.MAX_VALUE) BeforeDroneInstantiated event)
      

      Every other observer which listens to this kind of event will be executed before this method (since the precedence, by default 0, is lower then MAX_VALUE for Integer).

      If I need to do something BeforeDroneInstantiated when I am observing that event in my custom observer, it has to have higher precedence then this one which is not possible so it results in the fact that my custom BeforeDroneInstantiated observers are treated too late which ends up in funny situation when AfterDroneInstantiated event is fired before other BeforeDroneInstantiated observers take over the controll.

      Attachments

        Activity

          People

            smikloso Stefan Miklosovic (Inactive)
            smikloso Stefan Miklosovic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: