NXT-4596: Add BrowserService interface and OSGi service tracker#135
NXT-4596: Add BrowserService interface and OSGi service tracker#135hornm-knime wants to merge 2 commits intomasterfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Introduces an OSGi-discoverable BrowserService API in org.knime.core.ui to generate static artifacts (images/reports/PDF) via a headless browser, supporting the effort to move Equo Chromium usage out of the Executor.
Changes:
- Add new
BrowserServiceinterface for headless rendering/printing and a convenienceBrowserService.get()lookup. - Track
BrowserServicevia an OSGiServiceTrackerinCoreUIPluginand expose it throughCoreUIPlugin.getBrowserService(). - Export new internal package
org.knime.core.webui.browserfrom the bundle.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
org.knime.core.ui/src/eclipse/org/knime/core/webui/browser/BrowserService.java |
Adds the BrowserService API for rendering images/reports and printing PDFs, plus a static lookup helper. |
org.knime.core.ui/src/eclipse/org/knime/core/ui/CoreUIPlugin.java |
Adds a ServiceTracker and static accessor for retrieving the active BrowserService. |
org.knime.core.ui/META-INF/MANIFEST.MF |
Exports the new internal browser package so it can be referenced within the platform. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| * @since 5.12 | ||
| */ | ||
| public static Optional<BrowserService> getBrowserService() { | ||
| return Optional.ofNullable(instance.m_browserServiceTracker).map(ServiceTracker::getService); |
| public void stop(final BundleContext context) throws Exception { | ||
| // | ||
| m_browserServiceTracker.close(); | ||
| m_browserServiceTracker = null; | ||
| instance = null; |
7f195fc to
c01e2ca
Compare
2a1ade0 to
f48ae8c
Compare
NXT-4596 (Move Equo Chromium out of the Executor)
f48ae8c to
a05ffed
Compare
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
|


NXT-4596 (Move Equo Chromium out of the Executor)