[JBoss JIRA] (ARQ-1472) The precedence for BeforeDroneInstantiated event observation in DroneInstanceCreator is set badly
by Stefan Miklosovic (JIRA)
Stefan Miklosovic created ARQ-1472:
--------------------------------------
Summary: 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)
Reporter: Stefan Miklosovic
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
12 years, 7 months
[JBoss JIRA] (ARQ-1472) The precedence for BeforeDroneInstantiated event observation in DroneInstanceCreator is set badly
by Stefan Miklosovic (JIRA)
[ https://issues.jboss.org/browse/ARQ-1472?page=com.atlassian.jira.plugin.s... ]
Stefan Miklosovic updated ARQ-1472:
-----------------------------------
Affects Version/s: drone_1.2.0.Beta1
> 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)
> Affects Versions: drone_1.2.0.Beta1
> Reporter: Stefan Miklosovic
>
> 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
12 years, 7 months
[JBoss JIRA] (ARQ-1471) Provide documentation for @Observes annotation
by Karel Piwko (JIRA)
Karel Piwko created ARQ-1471:
--------------------------------
Summary: Provide documentation for @Observes annotation
Key: ARQ-1471
URL: https://issues.jboss.org/browse/ARQ-1471
Project: Arquillian
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Components: Base Implementation
Reporter: Karel Piwko
@Observes annotation should contain a documentation.
The most annoying fact is that precedence does not explain its value, that is that bigger value means being executed first.
--
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
12 years, 7 months