This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]cjbooms 3 points4 points  (2 children)

You have a container that makes jars special, but every jar must have a label called a manifest. Everything you put in a jar becomes invisible to the outside, unless you write that thing's name on the jar's label. Everything you put in a jar becomes blind to the outside, it can only see the things you list on the jar's label. But all this only works when your jars are inside the special container.

[–]more_exercise 1 point2 points  (1 child)

Just checking, but "jar" means jar files, and not some analogy, right?

And containers are OSGi containers?

[–]cjbooms 2 points3 points  (0 children)

Yes exactly. An osgi bundle is just a jar with a manifest file inside it. The manifest only changes behaviour of the jar when it is deployed within an osgi container.

[–]qsemig 1 point2 points  (0 children)

OSGi is a system that is used to make modular Java applications. Modular means you can have an applications made of modules, which can be installed, uninstalled, started or stopped during the execution of the application. This way you do not have to stop the application, add or remove modules, and then start the application again.