You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (JIRA)" <ji...@apache.org> on 2015/02/19 12:00:13 UTC

[jira] [Created] (SLING-4435) OSGi Mock: Cache reading of OSGi SCR Metadata files

Stefan Seifert created SLING-4435:
-------------------------------------

             Summary: OSGi Mock: Cache reading of OSGi SCR Metadata files
                 Key: SLING-4435
                 URL: https://issues.apache.org/jira/browse/SLING-4435
             Project: Sling
          Issue Type: Improvement
          Components: Testing
    Affects Versions: Testing OSGi Mock 1.1.0
            Reporter: Stefan Seifert
            Assignee: Stefan Seifert
            Priority: Minor
             Fix For: Testing OSGi Mock 1.1.2


currently the OSGi SCR metadata XML files are parsed multiple times for each SCR component during the unit tests. the metadata in classpath can be considered static during the whole unit test, so it should be safe to cache it in a static cache.

on the way we should refactor the code to parse this metadata a bit.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)