Skip to content

OSGiService implementation (Lucee LDEV-6627) - #1

Merged
michaeloffner merged 2 commits into
mainfrom
LDEV-6627-interface-sync
Nov 16, 2026
Merged

michaeloffner merged 2 commits into
mainfrom
LDEV-6627-interface-sync

Conversation

@michaeloffner

@michaeloffner michaeloffner commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Implements lucee.runtime.osgi.OSGiService (Lucee lucee/Lucee#3689) with Apache Felix, replacing the old BundleService implementation. LDEV-6627

  • loadClass (also with extra bundle directories), findClass, getResource, getResourceAsStream, getClassLoader (also with extra directories)
  • install(File, start) keeps a copy of the bundle jar in the bundle directory, uninstall(File) removes it again; a jar that is not a bundle returns false
  • getId(Class | ClassLoader | File): name:version, null for non bundle classes, Lucee itself and uninstalled bundles
  • getInfo(Class), shutdown()
  • the framework is started when the first bundle is needed

Checked against a real Felix with a standalone run (install, resources, class loader, ids, extra directory, missing bundle, uninstall). Not in this PR yet: download of missing bundles, version ranges and related bundles (ported from Lucee core in the next PR).

@michaeloffner michaeloffner changed the title Follow the BundleService interface (Lucee#3609) OSGiService implementation (Lucee LDEV-6627) Nov 7, 2026
@michaeloffner
michaeloffner merged commit dd155d3 into main Nov 16, 2026
5 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant