Title: Added lazy service loading mechanism by hinerm · Pull Request #2 · scijava/scijava-common · GitHub
Open Graph Title: Added lazy service loading mechanism by hinerm · Pull Request #2 · scijava/scijava-common
X Title: Added lazy service loading mechanism by hinerm · Pull Request #2 · scijava/scijava-common
Description: Adds the capacity to mark services as lazy so they won't be loaded during context construction, but can be loaded on demand later. To test: This is easiest to see with a Service implementation that will fail when loaded .. e.g. https://github.com/hinerm/bioformats/blob/scifio-master/components/scifio/src/loci/formats/services/LuraWaveServiceImpl.java .. but any service will work as long as it's not a parameter of another class (as parameters will be loaded before the parent class, regardless of whether they are lazy or not) Verify the service fails or loads as appropriate when "new Context()" is invoked. add "lazy=true" to the service's Plugin annotation repeat (1) and verify there's no error or success message for the service test that context.getService(service.class) causes the same output as before setting lazy to true.
Open Graph Description: Adds the capacity to mark services as lazy so they won't be loaded during context construction, but can be loaded on demand later. To test: This is easiest to see with a Service implementation ...
X Description: Adds the capacity to mark services as lazy so they won't be loaded during context construction, but can be loaded on demand later. To test: This is easiest to see with a Service implementat...
Opengraph URL: https://github.com/scijava/scijava-common/pull/2
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:562dafb0-5370-2e52-0beb-8327821c411b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B85A:1C7458:6BC7864:8D032D0:696D93E7 |
| html-safe-nonce | b9961609af36050176d017567b4ac30a373ebe70192ac19ade1fa13d7fe31263 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODVBOjFDNzQ1ODo2QkM3ODY0OjhEMDMyRDA6Njk2RDkzRTciLCJ2aXNpdG9yX2lkIjoiMzc2NTUzOTQzMDk0ODc3MDc5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9209f24f530f5797b18cdbeea1465fe7571346eea2b1aa77b4f12f73bbcb5843 |
| hovercard-subject-tag | pull_request:4678488 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/scijava/scijava-common/pull/2/files |
| twitter:image | https://avatars.githubusercontent.com/u/1123809?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1123809?s=400&v=4 |
| og:image:alt | Adds the capacity to mark services as lazy so they won't be loaded during context construction, but can be loaded on demand later. To test: This is easiest to see with a Service implementation ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7e5ae23c70136152637ceee8d6faceb35596ec46 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width