0

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?..

Aruna Karunarathna
  • 981
  • 2
  • 23
  • 55

1 Answers1

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