apache / celix

Apache Celix is a framework for C and C++14 to develop dynamic modular software applications using component and in-process service-oriented programming.
https://celix.apache.org/
Apache License 2.0
170 stars 89 forks source link

Prototype Service factory #621

Open pnoltes opened 1 year ago

pnoltes commented 1 year ago

Prototype service factory

Add support for registering and using prototype service factories for C and C++. Also add support registering and using bundle service factories for C++.

Background

Chapter 5.9 "Service Factory" of the OSGi 8 spec mentions 3 types of scoped service objects:

Apache Celix currently only supports the singleton scoped services and bundle scoped service factory (note that OSGi spec 5 only has a bundle scoped service factory).

PengZheng commented 3 months ago

I just noticed that C++ version of per bundle service factory is not implemented. Recently one user requiring it (as described by #766) is forced to use the SOD pattern, since he does not want to use C interface.

pnoltes commented 3 months ago

I just noticed that C++ version of per bundle service factory is not implemented.

I'm planning to pick up this issue after completing the removal of the deprecated utils and framework APIs. However, if this issue needs to be addressed sooner, please feel free to assign it to someone else.