]
George Gastaldi commented on FORGE-2408:
----------------------------------------
Hi [~ozizka]. This is not a bug. If you want to listen for startup of your own addon, you
should use the @Local qualifier.
PostStartup bug, or should be documented better
-----------------------------------------------
Key: FORGE-2408
URL:
https://issues.jboss.org/browse/FORGE-2408
Project: Forge
Issue Type: Bug
Components: Dependencies, Furnace CDI
Affects Versions: 2.16.2.Final
Reporter: Ondrej Zizka
Assignee: George Gastaldi
STR:
Check out the 1a89b1c commit from
https://github.com/OndraZizka/windup/commit/1a89b1cac3f76e519571fd08c0cf3...
And run the WindupUpdateRulesetTest.
That will fail in RulesetUpdateChecker, because the PostStartup is fired for all (?)
addons, even those which do not depend on windup-exec, and therefore the @Inject fails
with "IllegalStateException: Addon service [...RulesetUpdater] is not
registered".
I am not quite sure if that's how it should behave. Shouldn't it be called for
the "current addon" as stated in the javadoc of PostStartup?
Or if not, then please specify better when this is called and what is the state of the
addons.