[
https://issues.apache.org/jira/browse/SLING-7472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16387865#comment-16387865
]
Marius Petria commented on SLING-7472:
--------------------------------------
I am following up on the suggestion from [1]. IIUC the proposal is to identify
the OSGI factory based on the {{kind}} parameter sent by a user. This will be
done using an OSGI filter (e.g. (kind=agent)) to retrieve the matching
factories.
# In principle factories should be uniquely identified by {{kind}} and
{{type}} properties. The {{kinds}} are (almost) fixed but the need is to be
able to extend the {{types}} range (e.g. provide new type of agents).
# We would do, of course, validation that {{kind}} value is in the accepted
list (and that could also work for the {{type}})
# However, how do we ensure that this filter is not matched by other
configurations accidentally?
[1]
https://issues.apache.org/jira/browse/SLING-7468?focusedCommentId=16352160&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16352160
> Simplify factory mapping
> ------------------------
>
> Key: SLING-7472
> URL: https://issues.apache.org/jira/browse/SLING-7472
> Project: Sling
> Issue Type: Improvement
> Components: Content Distribution
> Reporter: Timothee Maret
> Priority: Major
> Fix For: Content Distribution Core 0.3.0
>
>
> As detailed in
> [SLING-7468|https://issues.apache.org/jira/browse/SLING-7468?focusedCommentId=16352160&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16352160],
> we could simplify the mapping of factory configurations, by setting the
> component type in each factory.
> This requires cleaning up the OSGI properties already set in some SCD
> factories.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)