[
https://issues.apache.org/jira/browse/SLING-12440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17914151#comment-17914151
]
Esteban Bustamante commented on SLING-12440:
--------------------------------------------
[~ptos] can you describe at a high level how to add custom extensions by
implementing
{{{}org.apache.sling.sitemap.spi.builder.SitemapExtensionProvider{}}}? I’m
puzzled by the fact that the {{URL}} interface, in order to "register" a custom
extension, requires a class that extends the {{Extension}} interface. You can
see this reference here:
[https://github.com/apache/sling-org-apache-sling-sitemap/blob/5ca300fc538b69a624ff492e4dca9d452be56e35/src/main/java/org/apache/sling/sitemap/builder/Url.java#L74]
> Extension incorrectly annotated with @ProviderType
> --------------------------------------------------
>
> Key: SLING-12440
> URL: https://issues.apache.org/jira/browse/SLING-12440
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Reporter: Peter Tos
> Priority: Major
> Labels: sitemaps
> Attachments: image-2025-01-16-16-19-35-924.png
>
>
> org.apache.sling.sitemap.builder.Extension is annotated with @ProviderType,
> but the implementation requires the consumer to extend this interface. This
> should be changed to @ConsumerType.
>
> https://github.com/apache/sling-org-apache-sling-sitemap/blob/master/src/main/java/org/apache/sling/sitemap/builder/Extension.java#L29
--
This message was sent by Atlassian Jira
(v8.20.10#820010)