commit | 043ef6c471601944997a39019c432115952484f0 | [log] [tgz] |
---|---|---|
author | Julian Sedding <jsedding@apache.org> | Wed Nov 15 18:04:59 2023 +0100 |
committer | Stefan Seifert <stefanseifert@users.noreply.github.com> | Thu Nov 16 16:05:01 2023 +0100 |
tree | c47cd7ac230ebd76dbaf4ea0beaff1133df6b7bc | |
parent | 52d25d277251676acd322892aeb418107d930660 [diff] |
SLING-12157 [osgi-mock] late binding does not work for non-service DS components - OsgiServiceUtilBindUnbindTest seems to have worked around this issue, hence the change - factored out "registerDSComponent" in order to reduce code duplication - with this fix, a non-service DS component is stored in MockBundleContext#registeredServices but its MockServiceRegistration#clazzes field is an empty set and thus cannot be retrieved via BundleContext#getServiceReference
This module is part of the Apache Sling project.
Mock implementation of selected OSGi APIs.
Documentation: http://sling.apache.org/documentation/development/osgi-mock.html