SonarSource/sonar — pull request #16 by henryju (2011-11-08 09:38:11+00:00)
Title: [SONAR-2043] Decorelate alert threshold decorator and global alert status

Hi,

Here is an attempt to fix SONAR-2043. We have a plugin that compute a metric and a custom alert on it. This alert is currently not taken into account in global alert status.
I have used a "decorator barrier" to allow it. Now each plugin that want to generate an alert should use @DependedUpon(value=DecoratorBarriers.END_OF_ALERTS_GENERATION)

GlobalAlertDecorator will wait for all plugin generating alerts to complete before computing the global alert status.

Thanks

Julien