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 to create an application-context object, but also checks if the bundle is importing any OSGI services. If any such bundle is found exporting an external service, then such beans are moved to the OSGI shared service registry. The extender registers...
Mastering Spring Application Development
By :
Mastering Spring Application Development
By:
Overview of this book
Table of Contents (19 chapters)
Mastering Spring Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Spring Mongo Integration
Messaging with Spring JMS
Mailing with Spring Mail
Jobs with Spring Batch
Spring Integration with FTP
Spring Integration with HTTP
Spring with Hadoop
Spring with OSGI
Bootstrap your Application with Spring Boot
Spring Cache
Spring with Thymeleaf Integration
Spring with Web Service Integration
Index
Customer Reviews