If I create a fragment bundle and add a new header entry under the maven-bundle-plugin instractions. Will that new entry get merged with the host bundle headers list at the runtime?..
Asked
Active
Viewed 95 times
0
-
You can try it out in a couple of minutes and answer your own question ;-). – Balazs Zsoldos Nov 24 '15 at 12:22
-
I tried that before posting the question and host bundle header list doesn't contain that, so just want to make sure its the default behavior or a mistake in my fragment bundle.. :) – Aruna Karunarathna Nov 24 '15 at 13:04
-
Ok. I think your fragment bundle was good. – Balazs Zsoldos Nov 24 '15 at 13:06
1 Answers
0
A bundle shares its classloader with its fragment bundles. That is all.
Bundle.getHeaders() always shows the headers defined for that specific bundle. The headers of fragment bundles are not merged to the headers of host bundle.

Balazs Zsoldos
- 6,036
- 2
- 23
- 31