Commit 707cdf4
committed
ServiceHelper: load EventService more aggressively
Whenever we have @eventhandler annotated methods, we need an
EventService to be loaded as a dependency. Otherwise, even if the
EventService is loaded later, those event handlers will not be properly
registered with it, since at the time registration was attempted, the
EventService was not yet loaded and hence null.
This change obviates the need for DefaultEventService being set to an
absurdly high priority, as explained at:
imagej/ImageJ@b9abe171 parent fc28421 commit 707cdf4
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
305 | 306 | | |
306 | 307 | | |
307 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
308 | 314 | | |
309 | 315 | | |
310 | 316 | | |
| |||
332 | 338 | | |
333 | 339 | | |
334 | 340 | | |
| 341 | + | |
| 342 | + | |
335 | 343 | | |
336 | 344 | | |
337 | 345 | | |
338 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
339 | 353 | | |
340 | 354 | | |
341 | 355 | | |
| |||
0 commit comments