Commit f88984c
committed
DefaultScriptService: fix service aliases
Previously, if a service depending on the ScriptService called addAlias
during its initialization (which is the case for ImageJ's
LegacyService), it would trigger the ScriptService to initialize its
alias map, including addition of all available services to the map. But
at that point, not all services are available yet. Better is to wait to
add services to the alias map until it is _certain_ that the service
initialization is complete. The ServicesLoadedEvent is perfect for this.1 parent bf0a385 commit f88984c
1 file changed
+14
-5
lines changedLines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
286 | 288 | | |
287 | 289 | | |
288 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
289 | 303 | | |
290 | 304 | | |
291 | 305 | | |
| |||
401 | 415 | | |
402 | 416 | | |
403 | 417 | | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | 418 | | |
410 | 419 | | |
411 | 420 | | |
| |||
0 commit comments