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: github.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:e8661cdd-0560-d0e3-6c58-e33ca2926968 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC00:1EEB64:5CA65:7CC2D:6969C588 |
| html-safe-nonce | 53be6f76f11fd34ec806651883cdbef8bd1b70e13e9d379ee635645c180be8ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzAwOjFFRUI2NDo1Q0E2NTo3Q0MyRDo2OTY5QzU4OCIsInZpc2l0b3JfaWQiOiI3NDU2ODUxNTA4NzQyMTc4MTg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 08f7976e3adc77f8f1d50887930e04752cb436d6e03b3791b1d08768e2830a7d |
| 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 | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| 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 | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width