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 2023/11/20 10:45:00 UTC

[jira] [Closed] (SLING-12157) [osgi-mock] late binding does not work for non-service DS components

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

Stefan Seifert closed SLING-12157.
----------------------------------

> [osgi-mock] late binding does not work for non-service DS components 
> ---------------------------------------------------------------------
>
>                 Key: SLING-12157
>                 URL: https://issues.apache.org/jira/browse/SLING-12157
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>    Affects Versions: Testing OSGi Mock 3.3.10
>            Reporter: Julian Sedding
>            Assignee: Julian Sedding
>            Priority: Major
>             Fix For: Testing OSGi Mock 3.4.0
>
>
> A DS component that is not a service can be "injected" and "activated", but if a service becomes available, that satisfies a dynamic reference, the "bind" method is not called. The same should be true for the "unbind" scenario.
> I observed this when I was registering a {{ResourceDecorator}} service in a test case, and it did not get bound by the {{ResourceResolverFactoryActivator}} that was already registered by the {{SlingContext}}.



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