Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
scr-2.0.6
-
None
Description
Calling Bundle.getHeaders() method requires additional work by the framework in order to search for translation resources for the bundle headers. For SCR the headers that are looked up must never be translated (for Service-Component and Bundle-ActivationPolicy). Only the raw values must be used from the original bundle manifest.
Instead of using Bundle.getHeaders() the method Bundle.getHeaders(String locale) should be used with an empty string (bundle.getHeaders("")). This returns the raw headers without requiring the framework to do a locale resource lookup.