Commit 0230775
committed
simplify usages of model catalog.
we know what model catalog we need for a given edition, and we know what point in the plugin lifecycle we need it. so we just get what we need, when we need it. nothing clever.
concretely, the invariant is that all extension entry points run and finish before any lifecycles initialise.
so while we have several extensions needing model catalog, we can illustrate in code the guarantees we know about. specifically, when an extension needs model catalog in it's lifecycle only, then we can just get the already created one; whereas when you need it in extension init itself, you are competing and must do a synchronised singleton get-or-create type thing.
this will be much clearer when we merge the extensions.1 parent 16890a0 commit 0230775
File tree
3 files changed
+15
-131
lines changed- edition-api/src
- main/java/org/neo4j/gds
- test/java/org/neo4j/gds
- proc/sysinfo/src/test/java/org/neo4j/gds
3 files changed
+15
-131
lines changedLines changed: 0 additions & 64 deletions
This file was deleted.
Lines changed: 0 additions & 64 deletions
This file was deleted.
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
217 | 221 | | |
218 | 222 | | |
219 | 223 | | |
220 | | - | |
221 | | - | |
222 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
223 | 235 | | |
224 | 236 | | |
225 | 237 | | |
| |||
0 commit comments