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:01:11 UTC

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

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

Stefan Seifert resolved SLING-4435.
-----------------------------------
    Resolution: Fixed

Completed: At revision: 1660841  


> 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
>              Labels: mocks
>             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)