Title: Make the PluginService respect enabled/disabled status · Issue #171 · scijava/scijava-common · GitHub
Open Graph Title: Make the PluginService respect enabled/disabled status · Issue #171 · scijava/scijava-common
X Title: Make the PluginService respect enabled/disabled status · Issue #171 · scijava/scijava-common
Description: For plugins that "might" be available depending on the state of the system (e.g., available only if a particular optional dependency is available), it would be nice if they could disable themselves in the event of any issues at initializ...
Open Graph Description: For plugins that "might" be available depending on the state of the system (e.g., available only if a particular optional dependency is available), it would be nice if they could disable themselves...
X Description: For plugins that "might" be available depending on the state of the system (e.g., available only if a particular optional dependency is available), it would be nice if they could disable ...
Opengraph URL: https://github.com/scijava/scijava-common/issues/171
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make the PluginService respect enabled/disabled status","articleBody":"For plugins that \"might\" be available depending on the state of the system (e.g., available only if a particular optional dependency is available), it would be nice if they could disable themselves in the event of any issues at initialization time.\n\nFor example, as of this writing, the `JavaScriptScriptLanguage` tries to wrap a javascript JSR-223 `ScriptEngineFactory`. It is possible that the active JVM might not have a javascript implementation, in which case the `JavaScriptScriptLanguage` bombs out in its constructor, and an exception stack trace appears on the console about how `JavaScriptScriptLanguage` is an invalid plugin. Better would be if the JSSL could proactively check for the needed javascript `ScriptEngineFactory` and then disable itself (via `getInfo().setEnable(false)`) if the needed thing isn't available.\n\nTo make this work as desired, methods of the `DefaultPluginService` could filter out any disabled `PluginInfo` objects.\n","author":{"url":"https://github.com/ctrueden","@type":"Person","name":"ctrueden"},"datePublished":"2015-06-11T19:36:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/171/scijava-common/issues/171"}
| 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:609ece1a-a200-3258-eba6-b3dce0b69281 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E484:26AEF0:1150847:178EA11:696E9AC1 |
| html-safe-nonce | 36a9cc76da8db321e9f10d23c1f8a8b51221ca0ab790888770af81ef74a86b52 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDg0OjI2QUVGMDoxMTUwODQ3OjE3OEVBMTE6Njk2RTlBQzEiLCJ2aXNpdG9yX2lkIjoiNTcyNTIzMTIzNzYwMzM5NjQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 24300d49e3645eab06273b7f02f451d320f5322f0a156cbfc6410768d2da0a45 |
| hovercard-subject-tag | issue:87470779 |
| 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/171/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7dcb17b247c1ba7abe675cc2336503ea09a34f7e2ccd9625ef07fc7997613e9d/scijava/scijava-common/issues/171 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7dcb17b247c1ba7abe675cc2336503ea09a34f7e2ccd9625ef07fc7997613e9d/scijava/scijava-common/issues/171 |
| og:image:alt | For plugins that "might" be available depending on the state of the system (e.g., available only if a particular optional dependency is available), it would be nice if they could disable themselves... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ctrueden |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdad15fd2ad43212aa8b8be5f2c2725550f8374ceeeb154a999ad9145b43f3f7 |
| 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 | 27b23bc056eb973d350fc95afc848757edb9e7a9 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width