You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2022/08/08 07:19:00 UTC

[jira] [Commented] (SLING-11516) Generate adapter metadata json for adaptations natively supported by ResourceResolverImpl

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

Konrad Windszus commented on SLING-11516:
-----------------------------------------

In fact the metadata at {{SLING-INF/adapters.json}} is already generated but unfortunately no longer contained in the resulting bundle. This is a regression of SLING-7665. 

> Generate adapter metadata json for adaptations natively supported by ResourceResolverImpl
> -----------------------------------------------------------------------------------------
>
>                 Key: SLING-11516
>                 URL: https://issues.apache.org/jira/browse/SLING-11516
>             Project: Sling
>          Issue Type: Improvement
>          Components: ResourceResolver
>    Affects Versions: Resource Resolver 1.9.0
>            Reporter: Konrad Windszus
>            Priority: Major
>
> Currently the Felix Web Console plugin at {{/system/console/adapters}} doesn't expose the adaptation from {{ResourceResolver}} to {{javax.jcr.Session}} and {{ResourceMapper}} as both are not leveraging the AdapterFactory SPI but rather implement this directly in the {{adaptTo}} method (https://github.com/apache/sling-org-apache-sling-resourceresolver/blob/b2ae3d5685d76498d353465c63e739b8745cf314/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverImpl.java#L648-L654). The annotations processed by https://github.com/apache/sling-adapter-annotations should be used to generate an according metadata JSON file which is evaluated by the Felix Web Console plugin.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)