René's URL Explorer Experiment


Title: Add NameService and NameProvider by imagejan · Pull Request #425 · scijava/scijava-common · GitHub

Open Graph Title: Add NameService and NameProvider by imagejan · Pull Request #425 · scijava/scijava-common

X Title: Add NameService and NameProvider by imagejan · Pull Request #425 · scijava/scijava-common

Description: This allows to define a way to derive names from objects of third party libraries, e.g. for use in ObjectService, where objects are registered with a name and can be provided e.g. in a drop-down choice in the UI. This pull request, together with imagej/imagej-legacy#263, will resolve this forum discussion about being able to automatically populate ij.measure.ResultsTable inputs, provided we implement the following ResultsTableNameProvider in a follow-up pull request to imagej-legacy: package net.imagej.legacy.plugin; import org.scijava.names.NameProvider; import org.scijava.plugin.AbstractHandlerPlugin; import org.scijava.plugin.Plugin; import ij.measure.ResultsTable; @Plugin(type=NameProvider.class) public class ResultsTableNameProvider extends AbstractHandlerPlugin implements NameProvider { @Override public String getName(Object thing) { return ((ResultsTable) thing).getTitle(); } @Override public boolean supports(Object thing) { return ResultsTable.class.isAssignableFrom(thing.getClass()); } } (Suggestions welcome to make this even more concise!)

Open Graph Description: This allows to define a way to derive names from objects of third party libraries, e.g. for use in ObjectService, where objects are registered with a name and can be provided e.g. in a drop-down ch...

X Description: This allows to define a way to derive names from objects of third party libraries, e.g. for use in ObjectService, where objects are registered with a name and can be provided e.g. in a drop-down ch...

Opengraph URL: https://github.com/scijava/scijava-common/pull/425

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:6262ffa3-a87a-c240-df4a-88487207d784
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC2D2:7994E:3E042:55882:696A98C4
html-safe-nonce930409a380007cfa0d49199f4231a8ff15bf4438250c1d9c1b0c3a2b2d2e906e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkQyOjc5OTRFOjNFMDQyOjU1ODgyOjY5NkE5OEM0IiwidmlzaXRvcl9pZCI6IjIzODYzNzQ0MjA4NzY0MDA4MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4caa311d41c6b78a665297dae7b98cdcba05fd467ee76936c958e0251aa588f6
hovercard-subject-tagpull_request:675682587
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/scijava/scijava-common/pull/425/files
twitter:imagehttps://avatars.githubusercontent.com/u/2033938?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2033938?s=400&v=4
og:image:altThis allows to define a way to derive names from objects of third party libraries, e.g. for use in ObjectService, where objects are registered with a name and can be provided e.g. in a drop-down ch...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonec0d8175e41e0e55b9e984c935b24b808cabab919dd3174aa45dac3ef503ed1af
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/scijava/scijava-common git https://github.com/scijava/scijava-common.git
octolytics-dimension-user_id1262770
octolytics-dimension-user_loginscijava
octolytics-dimension-repository_id3594497
octolytics-dimension-repository_nwoscijava/scijava-common
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3594497
octolytics-dimension-repository_network_root_nwoscijava/scijava-common
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release99aab454e5ddc8df30805fb76c114c3008a15842
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/scijava/scijava-common/pull/425/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscijava%2Fscijava-common%2Fpull%2F425%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscijava%2Fscijava-common%2Fpull%2F425%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=scijava%2Fscijava-common
Reloadhttps://github.com/scijava/scijava-common/pull/425/files
Reloadhttps://github.com/scijava/scijava-common/pull/425/files
Reloadhttps://github.com/scijava/scijava-common/pull/425/files
scijava https://github.com/scijava
scijava-commonhttps://github.com/scijava/scijava-common
Notifications https://github.com/login?return_to=%2Fscijava%2Fscijava-common
Fork 53 https://github.com/login?return_to=%2Fscijava%2Fscijava-common
Star 90 https://github.com/login?return_to=%2Fscijava%2Fscijava-common
Code https://github.com/scijava/scijava-common
Issues 169 https://github.com/scijava/scijava-common/issues
Pull requests 16 https://github.com/scijava/scijava-common/pulls
Actions https://github.com/scijava/scijava-common/actions
Projects 0 https://github.com/scijava/scijava-common/projects
Wiki https://github.com/scijava/scijava-common/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/scijava/scijava-common/security
Please reload this pagehttps://github.com/scijava/scijava-common/pull/425/files
Insights https://github.com/scijava/scijava-common/pulse
Code https://github.com/scijava/scijava-common
Issues https://github.com/scijava/scijava-common/issues
Pull requests https://github.com/scijava/scijava-common/pulls
Actions https://github.com/scijava/scijava-common/actions
Projects https://github.com/scijava/scijava-common/projects
Wiki https://github.com/scijava/scijava-common/wiki
Security https://github.com/scijava/scijava-common/security
Insights https://github.com/scijava/scijava-common/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fscijava%2Fscijava-common%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fscijava%2Fscijava-common%2Fissues%2Fnew%2Fchoose
imagejanhttps://github.com/imagejan
masterhttps://github.com/scijava/scijava-common/tree/master
nameservicehttps://github.com/scijava/scijava-common/tree/nameservice
Conversation 5 https://github.com/scijava/scijava-common/pull/425
Commits 1 https://github.com/scijava/scijava-common/pull/425/commits
Checks 0 https://github.com/scijava/scijava-common/pull/425/checks
Files changed 6 https://github.com/scijava/scijava-common/pull/425/files
Add NameService and NameProvider https://github.com/scijava/scijava-common/pull/425/files#top
Show all changes 1 commit https://github.com/scijava/scijava-common/pull/425/files
bbd91e9 Add NameService and NameProvider imagejan Jun 20, 2021 https://github.com/scijava/scijava-common/pull/425/commits/bbd91e9b2f47612b1ba6f4ac3f0d8cedd547bac6
Clear filters https://github.com/scijava/scijava-common/pull/425/files
Please reload this pagehttps://github.com/scijava/scijava-common/pull/425/files
Please reload this pagehttps://github.com/scijava/scijava-common/pull/425/files
NameProvider.java https://github.com/scijava/scijava-common/pull/425/files#diff-f7b504858d616a5f3d14508b676579a2df12a77cba093c73a8347fec189c3f28
NameService.java https://github.com/scijava/scijava-common/pull/425/files#diff-05e43c3f56ba89b820632ec0678699f44476c6040551654969993cc33931e6f9
ObjectService.java https://github.com/scijava/scijava-common/pull/425/files#diff-e3d7dea5d3da20cce848762f156cda3af19582076cd7c95426fbdd465eea1d87
ContextCreationTest.java https://github.com/scijava/scijava-common/pull/425/files#diff-a21408a970c12d528b1a6ebad52dd5d2da27cf9a52bdee22fb2817a5a631ce3a
NameProviderTest.java https://github.com/scijava/scijava-common/pull/425/files#diff-fafed1c038daeae0439886d8e18a5140a1c24e2a7d84e1c20a0f12302738f7b7
ObjectServiceTest.java https://github.com/scijava/scijava-common/pull/425/files#diff-c6ed7ea0ac228ab04226e0eec7d7d701554cf24f59571fd595efb06f5b0491da
src/main/java/org/scijava/names/NameProvider.javahttps://github.com/scijava/scijava-common/pull/425/files#diff-f7b504858d616a5f3d14508b676579a2df12a77cba093c73a8347fec189c3f28
View file https://github.com/scijava/scijava-common/blob/bbd91e9b2f47612b1ba6f4ac3f0d8cedd547bac6/src/main/java/org/scijava/names/NameProvider.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/scijava/scijava-common/pull/425/{{ revealButtonHref }}
src/main/java/org/scijava/names/NameService.javahttps://github.com/scijava/scijava-common/pull/425/files#diff-05e43c3f56ba89b820632ec0678699f44476c6040551654969993cc33931e6f9
View file https://github.com/scijava/scijava-common/blob/bbd91e9b2f47612b1ba6f4ac3f0d8cedd547bac6/src/main/java/org/scijava/names/NameService.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/scijava/scijava-common/pull/425/{{ revealButtonHref }}
src/main/java/org/scijava/object/ObjectService.javahttps://github.com/scijava/scijava-common/pull/425/files#diff-e3d7dea5d3da20cce848762f156cda3af19582076cd7c95426fbdd465eea1d87
View file https://github.com/scijava/scijava-common/blob/bbd91e9b2f47612b1ba6f4ac3f0d8cedd547bac6/src/main/java/org/scijava/object/ObjectService.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/scijava/scijava-common/pull/425/{{ revealButtonHref }}
https://github.com/scijava/scijava-common/pull/425/files#diff-e3d7dea5d3da20cce848762f156cda3af19582076cd7c95426fbdd465eea1d87
https://github.com/scijava/scijava-common/pull/425/files#diff-e3d7dea5d3da20cce848762f156cda3af19582076cd7c95426fbdd465eea1d87
https://github.com/scijava/scijava-common/pull/425/files#diff-e3d7dea5d3da20cce848762f156cda3af19582076cd7c95426fbdd465eea1d87
https://github.com/scijava/scijava-common/pull/425/files#diff-e3d7dea5d3da20cce848762f156cda3af19582076cd7c95426fbdd465eea1d87
src/test/java/org/scijava/ContextCreationTest.javahttps://github.com/scijava/scijava-common/pull/425/files#diff-a21408a970c12d528b1a6ebad52dd5d2da27cf9a52bdee22fb2817a5a631ce3a
View file https://github.com/scijava/scijava-common/blob/bbd91e9b2f47612b1ba6f4ac3f0d8cedd547bac6/src/test/java/org/scijava/ContextCreationTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/scijava/scijava-common/pull/425/{{ revealButtonHref }}
https://github.com/scijava/scijava-common/pull/425/files#diff-a21408a970c12d528b1a6ebad52dd5d2da27cf9a52bdee22fb2817a5a631ce3a
https://github.com/scijava/scijava-common/pull/425/files#diff-a21408a970c12d528b1a6ebad52dd5d2da27cf9a52bdee22fb2817a5a631ce3a
src/test/java/org/scijava/names/NameProviderTest.javahttps://github.com/scijava/scijava-common/pull/425/files#diff-fafed1c038daeae0439886d8e18a5140a1c24e2a7d84e1c20a0f12302738f7b7
View file https://github.com/scijava/scijava-common/blob/bbd91e9b2f47612b1ba6f4ac3f0d8cedd547bac6/src/test/java/org/scijava/names/NameProviderTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/scijava/scijava-common/pull/425/{{ revealButtonHref }}
src/test/java/org/scijava/object/ObjectServiceTest.javahttps://github.com/scijava/scijava-common/pull/425/files#diff-c6ed7ea0ac228ab04226e0eec7d7d701554cf24f59571fd595efb06f5b0491da
View file https://github.com/scijava/scijava-common/blob/bbd91e9b2f47612b1ba6f4ac3f0d8cedd547bac6/src/test/java/org/scijava/object/ObjectServiceTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/scijava/scijava-common/pull/425/{{ revealButtonHref }}
https://github.com/scijava/scijava-common/pull/425/files#diff-c6ed7ea0ac228ab04226e0eec7d7d701554cf24f59571fd595efb06f5b0491da
https://github.com/scijava/scijava-common/pull/425/files#diff-c6ed7ea0ac228ab04226e0eec7d7d701554cf24f59571fd595efb06f5b0491da
https://github.com/scijava/scijava-common/pull/425/files#diff-c6ed7ea0ac228ab04226e0eec7d7d701554cf24f59571fd595efb06f5b0491da
https://github.com/scijava/scijava-common/pull/425/files#diff-c6ed7ea0ac228ab04226e0eec7d7d701554cf24f59571fd595efb06f5b0491da
https://github.com/scijava/scijava-common/pull/425/files#diff-c6ed7ea0ac228ab04226e0eec7d7d701554cf24f59571fd595efb06f5b0491da
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.