[arquillian-issues] [JBoss JIRA] (ARQ-1472) The precedence for BeforeDroneInstantiated event observation in DroneInstanceCreator is set badly

Karel Piwko (JIRA) jira-events at lists.jboss.org
Mon Sep 9 08:37:04 EDT 2013


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

Karel Piwko resolved ARQ-1472.
------------------------------

      Assignee: Stefan Miklosovic
    Resolution: Done

    
> The precedence for BeforeDroneInstantiated event observation in DroneInstanceCreator is set badly
> -------------------------------------------------------------------------------------------------
>
>                 Key: ARQ-1472
>                 URL: https://issues.jboss.org/browse/ARQ-1472
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Extension - Drone
>    Affects Versions: drone_1.2.0.Beta1
>            Reporter: Stefan Miklosovic
>            Assignee: Stefan Miklosovic
>             Fix For: drone_1.2.0.Beta2
>
>
> The problem is in DroneInstanceCreator.createDroneInstance method
> {code}
> public void createDroneInstance(@Observes(precedence = Integer.MAX_VALUE) BeforeDroneInstantiated event)
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the arquillian-issues mailing list