You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8c48289
Browse filesBrowse the repository at this point in the historyBrowse files
@dependency fills in services, the Context and the EventBus, after
construction and before Service.initialize, so a dependency is ready by
the time initialization runs. An optional dependency (required = false)
stays null; a missing required one names the field and the type it
wanted.
It is deliberately not called @parameter as in SciJava Common. There that
annotation meant two unrelated things -- a dependency to inject, and an
input to a module -- and the second is now org.scijava.struct's business.
Keeping the name would have preserved muscle memory at the price of
re-importing the confusion.
scijava-context-test injects private fields of a plugin across a real
module boundary, which proves both halves of the JPMS claim at once: a
qualified `opens` grants the container the deep reflection it needs, and
the package remains exported to nobody, so ordinary callers still cannot
reach the implementation.
Also makes two assertions in PluginDiscoveryTest select plugins by name
rather than by position. Adding a third plugin to the test module broke
them, which is a fair warning about how they were written.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013gJpzGd3ksbME4CN6Tu2ni
Copy file name to clipboardExpand all lines: docs/migration.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,7 @@ A **dropped** row is a successful outcome, not a gap.
111
111
|`cache`|`scijava-cache` moves in, keeping `org.scijava.cache` (Phase 2) | planned |
112
112
|`thread`|`org.scijava.concurrent`| ported |
113
113
|`task`|`org.scijava.progress`| ported |
114
+
|`plugin.Parameter` (as dependency injection) |`org.scijava.context.Dependency`. Renamed because `@Parameter` meant both "inject this" and "this is a module input"; the latter is now `org.scijava.struct`| ported |
114
115
|`plugin` (`Plugin`, `Attr`, `PluginService`, `PluginInfo`, `PluginIndex`) |`org.scijava.context.Plugin` and `Attr`, discovered via `Context.plugins(Class)`. `PluginInfo` becomes `org.scijava.discovery.Discovery`, which reports class name, metadata and priority without loading the class; `PluginService` and `PluginIndex` are subsumed by `Context.plugins`| ported |
115
116
|`plugin` (the `HandlerPlugin`/`WrapperPlugin`/`TypedPlugin`/`SingletonPlugin` hierarchy and their services) | not ported — each user of these inlines the small contract it needs, as `DataHandle` did | dropped |
116
117
|`service`|`org.scijava.context`: `Service` (no longer a plugin, and discovered via `ServiceLoader`), with `Context` holding them. `SciJavaService` has no equivalent — a marker is not needed. `ServiceHelper` and `ServiceIndex` are internal to `Context`| ported |
0 commit comments