Spring Dynamic Modules and OSGI

Let us look at how Spring Dynamic Modules work. Spring comes with its OSGI integration framework, which has a class called extender. This checks for all existing bundles and marks the bundles which are powered by Spring. The extender marks a bundle as Spring compatible only if it has Spring context manifest header or an XML file in META-INF/spring folder. All the preceding steps are triggered on start up and the extender package is available on org.springframeork.osgi.bundle.extender. Now, we have to know why Spring dynamic modules mark the Spring powered bundles. The bundles with Spring configuration files are further converted to an application-context object. The extender not only marks the Spring powered bundles ...

Get Mastering Spring Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.