Commit 60ef945
Make Module support Initializable
It might be easier for the delegate class inside the module to implement
this interface than to specify the initializer inside the Plugin
annotation, especially because annotation could not be partially
overridden. Now the Initializable interface has higher priority than the
initializer annotation, and at most one of them will be called when a
module is initialized.
Closes #249.
Signed-off-by: Curtis Rueden <ctrueden@wisc.edu>1 parent 7cb92b9 commit 60ef945
1 file changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
82 | 90 | | |
83 | | - | |
84 | 91 | | |
85 | 92 | | |
86 | 93 | | |
| |||
0 commit comments