I am new to OSGI framework. I was going through the sites and read about OSGI framework. Frankly speaking I did notunderstand anything. Following are my doubts
I am totally confused. Can somebody answer me ? If it is possible to give some examples also.
My definition of a module is a unit of encapsulation (i.e. it hides internal details) that communicates with other modules via a contract (i.e. a predefined set of possible interactions). A JAR file is not a module because it exhibits neither of these properties. There is no encapsulation, all internal implementation details are visible and accessible from the outside. There is no contract, you just put the JAR file on the classpath and hope it provides the features you desire.
Dynamic means that OSGi bundles (modules) can be installed, upgraded or uninstalled during runtime. This can be very useful for upgrading running systems or for deploying software to a efficiently across a large network.
Bundles have to be installed because software always has to be installed before we use it. JAR files also have to be installed! Only the means of installation is slightly different, i.e. JAR files are added to the classpath whereas bundles are installed using the install
command (this can also be scripted or called from an API). OSGi gives us much more control over this process.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With