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: github.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:8037a649-de4c-8ebf-7cf6-b35f341df6e4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9514:1F8F34:C7B274:111AE27:6969F50C |
| html-safe-nonce | 460e37b5edbd2c0a06430074178598ac1d727d1f9baf4950f085b26fa7cf5ed1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTE0OjFGOEYzNDpDN0IyNzQ6MTExQUUyNzo2OTY5RjUwQyIsInZpc2l0b3JfaWQiOiI1MTU4MDkwMDI0NDI2MjcyMDEyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | efc010fcda2f028b4a535470f168de8d563519955a4ec1a5eed98997f67c77f9 |
| 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 | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width