Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prototype Service factory #621

Open
pnoltes opened this issue Aug 23, 2023 · 0 comments
Open

Prototype Service factory #621

pnoltes opened this issue Aug 23, 2023 · 0 comments
Assignees
Labels
component/framework Categorizes an issue or PR relevant to the framework. kind/feature Categorizes issue or PR as related to a new feature.

Comments

@pnoltes
Copy link
Contributor

pnoltes commented Aug 23, 2023

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:

  • singleton: A normal service
  • bundle: Create service instance per requesting bundle
  • prototype; Create service instance per request

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).

@pnoltes pnoltes added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 23, 2023
@pnoltes pnoltes self-assigned this Aug 23, 2023
@pnoltes pnoltes added the component/framework Categorizes an issue or PR relevant to the framework. label Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/framework Categorizes an issue or PR relevant to the framework. kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant