osgi / bugzilla-archive

Archive of OSGi Alliance Specification Bugzilla bugs. The Specification Bugzilla system was decommissioned with the move to GitHub. The issues in this repository are imported from the Specification Bugzilla system for archival purposes.
0 stars 1 forks source link

[RFC 158] Support for parameterized services #422

Closed bjhargrave closed 14 years ago

bjhargrave commented 17 years ago

Original bug ID: BZ#461 From: @pkriens Reported version: R4 V4.2

bjhargrave commented 17 years ago

Comment author: @pkriens

I see many initiatives where people run into problems with our ServiceFactory model. There seems to be a need to customize the service per call (instead of per bundle) so you get true instances and a need to parametrize that call. Such a primitive would make the OSGi service registry model significantly richer and enable more applications.

There are of course issues with backwards compatibility but I expect that things like spring-osgi, iPojo, DS, etc. can be made more powerful.

bjhargrave commented 17 years ago

Comment author: @bjhargrave

This seems to be analogous to what Spring calls prototype scope. That is each request for the service object returns a new object.

bjhargrave commented 17 years ago

Comment author: @bjhargrave

CPEG call: We need much more detail (RFP or RFC) to consider further.

bjhargrave commented 15 years ago

Comment author: @pkriens

Written an RFP for this bug number

bjhargrave commented 14 years ago

Comment author: @bjhargrave

CPEG call: Need to move RFP 117 to approval stage. CPEG members review for next call.

bjhargrave commented 14 years ago

Comment author: @bjhargrave

RFP 117 was approved and RFC 158 has been submitted and is under discussion.

bjhargrave commented 14 years ago

Comment author: @bjhargrave

CPEG call: BJ and Peter request to withdraw this RFC. After several design iterations, it was decided that no changes are needed to support using Factory types. And such types need to be used to ensure proper type safety for the factory type, the parameter types and the produced type. CPEG agreed.