Registry / dependency-injection / org-osgi-framework

org-osgi-framework

JSON →
library1.10.0javamavenunverified

OSGi Companion Code providing core framework interfaces and classes for building modular Java applications.

<dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.framework</artifactId> <version>1.10.0</version> </dependency>
INSTALL
IMPORT
SIG · ORG-OSGI-FRAMEWORK
O
org-osgi-framework
dependency-injectionjavav1.10.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BundleContext
org.osgi.framework.BundleContext

Access the OSGi BundleContext from a bundle.

import org.osgi.framework.BundleContext; import org.osgi.framework.FrameworkUtil; public class Main { public static void main(String[] args) { BundleContext context = FrameworkUtil.getBundle(Main.class).getBundleContext(); System.out.println("Bundle: " + context.getBundle()); } }
Debug
Known issues
breakingRequires an OSGi runtime environment (e.g., Equinox, Felix) to function.
fix
Run the application inside an OSGi container.
affects: >=1.0.0
Upgrade
Version history
1.10.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
28
Resources
org-osgi-framework — mvn dependency:get org-osgi-framework · libregistry