Konrad Windszus created SLING-10922:
---------------------------------------

             Summary: OSGi Mock: MockBundleService.registerService() must 
neither consider component/metatype resources nor CA
                 Key: SLING-10922
                 URL: https://issues.apache.org/jira/browse/SLING-10922
             Project: Sling
          Issue Type: Bug
          Components: Testing
    Affects Versions: Testing OSGi Mock 3.1.4
            Reporter: Konrad Windszus


Currently {{MockBundleContext.registerService()}} 
(https://github.com/apache/sling-org-apache-sling-testing-osgi-mock/blob/7645d720de9e27f4d9878d2e3b33d63e87da81bf/core/src/main/java/org/apache/sling/testing/mock/osgi/MockBundleContext.java#L125)
 considers meta data of the 
[Metatype|http://docs.osgi.org/specification/osgi.cmpn/7.0.0/service.metatype.html#i1504250]
 and [DS 
Spec|http://docs.osgi.org/specification/osgi.cmpn/7.0.0/service.component.html] 
as well as evaluates configuration provides by [Configuration 
Admin|http://docs.osgi.org/specification/osgi.cmpn/7.0.0/service.cm.html].

As {{BundleContext.registerService()}} is defined by the [OSGi Core 
Spec|http://docs.osgi.org/specification/osgi.core/7.0.0/framework.service.html#framework.service.registeringservices]
 it does not have any relation to the other OSGi Compendium specs and therefore 
must not consider OSGi metadata nor OSGi config admin.



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

Reply via email to