Hello Rodrigo,

On Sep 14, 2007, at 19:42 , Rodrigo Madera wrote:

Do you have an example on i18n using Fragment Bundles?
Also, what is their exact definition?

For both the definition and an example of using fragment bundles, I would like to refer you to the OSGi R4.1 core specification. You can download that on the http://www.osgi.org/ website and chapter 3.14 both defines fragment bundles and explains the i18n use case.

To quote a few lines from that chapter: "Fragments are bundles that are attached to a host bundle by the Framework. Attaching is done as part of resolving: the Framework appends the relevant definitions of the fragment bundles to the host’s definitions before the host is resolved. Fragments are therefore treated as part of the host, including any permitted headers; they must not have their own class loader. Fragments must have their own Protection Domain.

A key use case for fragments is providing translation files for different locales. This allows the translation files to be treated and shipped independently from the main application bundle."

Greetings, Marcel

Reply via email to