Title: Singleton *Plugins* don't resolve dependencies recurrently · Issue #487 · scijava/scijava-common · GitHub
Open Graph Title: Singleton *Plugins* don't resolve dependencies recurrently · Issue #487 · scijava/scijava-common
X Title: Singleton *Plugins* don't resolve dependencies recurrently · Issue #487 · scijava/scijava-common
Description: If you have a non-contextual object that you want to connect with other contextual objects, and thus try to Context.inject it, any @Parameters that are SingletonServices will NOT be created/injected. You will get a [ERROR] java.lang.Ille...
Open Graph Description: If you have a non-contextual object that you want to connect with other contextual objects, and thus try to Context.inject it, any @Parameters that are SingletonServices will NOT be created/injecte...
X Description: If you have a non-contextual object that you want to connect with other contextual objects, and thus try to Context.inject it, any @Parameters that are SingletonServices will NOT be created/injecte...
Opengraph URL: https://github.com/scijava/scijava-common/issues/487
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Singleton *Plugins* don't resolve dependencies recurrently","articleBody":"If you have a non-contextual object that you want to connect with other contextual objects, and thus try to `Context.inject` it, any `@Parameter`s that are [SingletonServices](https://github.com/scijava/scijava-common/blob/master/src/main/java/org/scijava/plugin/SingletonService.java) will NOT be created/injected. You will get a `[ERROR] java.lang.IllegalArgumentException: Required service is missing`.\n\nIf those singleton services are initialized beforehand, e.g. as an `@Parameter` or another contextual object that is used before injecting the non-contextual object, then the injection will proceed without errors.","author":{"url":"https://github.com/hinerm","@type":"Person","name":"hinerm"},"datePublished":"2025-11-05T05:18:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/487/scijava-common/issues/487"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:058e1cea-4e26-ba75-53fd-c9f63f97ca02 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A536:8B9E9:16B4E3F:1E4579D:696F07B7 |
| html-safe-nonce | bb60b6fbe18914e3600e94af4f4492ee3831efde84f618fa1b20cfe378d71648 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTM2OjhCOUU5OjE2QjRFM0Y6MUU0NTc5RDo2OTZGMDdCNyIsInZpc2l0b3JfaWQiOiI0NjUxODM0NjgyOTg5NTQ1Mzk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | df9437ddb7bc7670ae02db10a53ee605da31f878a8970605b1127e9edfda0b74 |
| hovercard-subject-tag | issue:3589365165 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/scijava-common/487/issue_layout |
| twitter:image | https://opengraph.githubassets.com/190abaf01b489ec5d17499ee260154782b7fc12f699faba5cda4ebf832669d7d/scijava/scijava-common/issues/487 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/190abaf01b489ec5d17499ee260154782b7fc12f699faba5cda4ebf832669d7d/scijava/scijava-common/issues/487 |
| og:image:alt | If you have a non-contextual object that you want to connect with other contextual objects, and thus try to Context.inject it, any @Parameters that are SingletonServices will NOT be created/injecte... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hinerm |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/scijava-common git https://github.com/scijava/scijava-common.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 3594497 |
| octolytics-dimension-repository_nwo | scijava/scijava-common |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3594497 |
| octolytics-dimension-repository_network_root_nwo | scijava/scijava-common |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width