Registry / dependency-injection / spring-osgi-core

spring-osgi-core

JSON →
library1.2.1javamavenunverified

Provides core OSGi integration for Spring, including OSGi-based application contexts and service importer/exporter functionality.

<dependency> <groupId>org.springframework.osgi</groupId> <artifactId>spring-osgi-core</artifactId> <version>1.2.1</version> </dependency>
INSTALL
IMPORT
SIG · SPRING-OSGI-CORE
S
spring-osgi-core
dependency-injectionjavav1.2.1
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.

OsgiBundleXmlApplicationContext
org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext

Creates an OSGi-aware Spring application context from XML configuration files.

import org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext; public class OsgiExample { public static void main(String[] args) { try (OsgiBundleXmlApplicationContext ctx = new OsgiBundleXmlApplicationContext(new String[]{"classpath*:META-INF/spring/*.xml"})) { ctx.refresh(); MyService service = ctx.getBean(MyService.class); service.doSomething(); } } }
Debug
Known issues
breakingSpring OSGi is largely superseded by Spring Boot and modern OSGi frameworks like Apache Karaf.
fix
Consider migrating to Spring Boot with OSGi support or using Apache Karaf with Blueprint.
affects: >=1.0.0
Upgrade
Version history
1.2.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
24
OpenAI (training)
1
Resources
spring-osgi-core — mvn dependency:get spring-osgi-core · libregistry