felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FELIX-5474) Do not call no-arg Bundle.getHeaders() method
Date Thu, 05 Jan 2017 06:12:58 GMT

     [ https://issues.apache.org/jira/browse/FELIX-5474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Carsten Ziegeler updated FELIX-5474:
    Issue Type: Improvement  (was: Bug)

> Do not call no-arg Bundle.getHeaders() method
> ---------------------------------------------
>                 Key: FELIX-5474
>                 URL: https://issues.apache.org/jira/browse/FELIX-5474
>             Project: Felix
>          Issue Type: Improvement
>          Components: Declarative Services (SCR)
>    Affects Versions: scr-2.0.6
>            Reporter: Thomas Watson
>            Assignee: Thomas Watson
>             Fix For: scr-2.0.8, scr-2.1.0
> 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.

This message was sent by Atlassian JIRA

View raw message