Repository navigation
Commit a9f7105
committed
AbstractSingletonService: register instances lazily
To be more precise, the objects were previously registered lazily upon
the first call to SingletonService#getInstances(). Unfortunately,
calling ObjectService#get or ObjectService#getAll before that failed to
return the singleton instances, because they had not yet even been
instantiated. To address this problem, we now register them using the
ObjectIndex's newly minted addLater feature, which lets us register a
callback to create objects only when they are needed.1 parent 28a7e7c commit a9f7105
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
76 | 92 | | |
77 | 93 | | |
78 | 94 | | |
| |||
0 commit comments