You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (Jira)" <ji...@apache.org> on 2021/12/07 15:07:00 UTC

[jira] [Updated] (SLING-10975) osgi-mock: Remove duplicate handling of ServiceFactory implementation

     [ https://issues.apache.org/jira/browse/SLING-10975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Seifert updated SLING-10975:
-----------------------------------
    Description: 
since SLING-5090 we have a very simplified ServiceFactory support, which is not really implemented correctly but it seemed to fulfill the need of some unit tests. having a proper serviceScope=PROTOTYPE and ServiceFactory implementation would required much more work, and a full working SCR component registry which is able to manage multiple service instances per service factory registrattion.

in this ticket, we remove some misplaced code around the existing ServiceFactory implementation without improving it: some code around this handling got duplicated, and would do harm it it would be executed the intended way.

  was:
since SING-5090 we have a very simplified ServiceFactory support, which is not really implemented correctly but it seemed to fulfill the need of some unit tests. having a proper serviceScope=PROTOTYPE and ServiceFactory implementation would required much more work, and a full working SCR component registry which is able to manage multiple service instances per service factory registrattion.

in this ticket, we remove some misplaced code around the existing ServiceFactory implementation without improving it: some code around this handling got duplicated, and would do harm it it would be executed the intended way.


> osgi-mock: Remove duplicate handling of ServiceFactory implementation
> ---------------------------------------------------------------------
>
>                 Key: SLING-10975
>                 URL: https://issues.apache.org/jira/browse/SLING-10975
>             Project: Sling
>          Issue Type: Bug
>          Components: Testing
>    Affects Versions: Testing OSGi Mock 3.2.0
>            Reporter: Stefan Seifert
>            Assignee: Stefan Seifert
>            Priority: Minor
>             Fix For: Testing OSGi Mock 3.2.2
>
>
> since SLING-5090 we have a very simplified ServiceFactory support, which is not really implemented correctly but it seemed to fulfill the need of some unit tests. having a proper serviceScope=PROTOTYPE and ServiceFactory implementation would required much more work, and a full working SCR component registry which is able to manage multiple service instances per service factory registrattion.
> in this ticket, we remove some misplaced code around the existing ServiceFactory implementation without improving it: some code around this handling got duplicated, and would do harm it it would be executed the intended way.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)