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 2016/06/09 08:45:21 UTC

[jira] [Commented] (SLING-5769) Expose resource resolver factory from SlingContext

    [ https://issues.apache.org/jira/browse/SLING-5769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15322164#comment-15322164 ] 

Stefan Seifert commented on SLING-5769:
---------------------------------------

you can get the ResourceResolverFactory just via OSGi / getService(...) on the context.

> Expose resource resolver factory from SlingContext
> --------------------------------------------------
>
>                 Key: SLING-5769
>                 URL: https://issues.apache.org/jira/browse/SLING-5769
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>    Affects Versions: Testing Sling Mock 1.6.2
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>
> Currently only one singleton resource resolver is exposed from {{o.a.s.testing.mock.sling.junit.SlingContext}} (which is automatically closed at the end of the test). For some cases (see SLING-5719) it is useful to create additional resource resolvers. For that the underlying resource resolver factory should be exposed as well from {{SlingContext}}.



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