You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Tomek Rękawek (JIRA)" <ji...@apache.org> on 2015/10/16 12:12:05 UTC

[jira] [Resolved] (SLING-5157) Improvements in the new ResourceProvider API

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

Tomek Rękawek resolved SLING-5157.
----------------------------------
    Resolution: Fixed

Thanks for the review. Commited in r1708947.

> Improvements in the new ResourceProvider API
> --------------------------------------------
>
>                 Key: SLING-5157
>                 URL: https://issues.apache.org/jira/browse/SLING-5157
>             Project: Sling
>          Issue Type: Sub-task
>          Components: API
>            Reporter: Tomek Rękawek
>             Fix For: API 2.10.0
>
>         Attachments: SLING-5157.patch
>
>
> There are two small improvements which can be made in the new ResourceProvider API:
> *1. Add properties for marking a ResourceProvider as adaptable, refreshable and attributable.*
> It'll help to avoid the resource providers full-scan when invoking methods not related to a specific paths. Each registered servlet creates its own ResourceProvider and scanning them all every time someone calls {{ResourceResolver#adaptTo()}} might be slow.
> *2. Mark old ResourceProvider and ResourceProviderFactory as deprecated*



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