Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Content Distribution
    • None

    Description

      As detailed in SLING-7468, 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.

      Attachments

        Issue Links

          Activity

            mpetria Marius Petria added a comment -

            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.

            1. 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).
            2. We would do, of course, validation that kind value is in the accepted list (and that could also work for the type)
            3. 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 

            mpetria Marius Petria added a comment - 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  

            People

              Unassigned Unassigned
              marett Timothee Maret
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: