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

Timothee Maret commented on SLING-12087:
----------------------------------------

[~jose-correia] looking at the PR, I noticed we already have an API to provide 
metadata to every messages via the `properties` parameter of the method
{quote}org.apache.sling.distribution.journal.MessageSender#send(T, 
java.util.Map<java.lang.String,java.lang.String>)
{quote}
Injecting extra headers can be done in the MessageSender implementation.

> Create SPI for adding metadata to PackageMessages
> -------------------------------------------------
>
>                 Key: SLING-12087
>                 URL: https://issues.apache.org/jira/browse/SLING-12087
>             Project: Sling
>          Issue Type: Task
>          Components: Content Distribution
>            Reporter: José Correia
>            Assignee: José Correia
>            Priority: Major
>
> We want to add additional metadata to the PackageMessage objects created 
> during content distribution and that are sent through the Message Provider.
> In order to do this, the distribution journal codebase should provide a 
> Service Provider Interface that allows for implementing logic that adds 
> specific metadata for different use-cases.
>  
> We will add an additional metadata field to the PackageMessage object.



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

Reply via email to