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 124 RI] List<ServiceReference> collections not updating with service dynamics. #1135

Closed bjhargrave closed 14 years ago

bjhargrave commented 15 years ago

Original bug ID: BZ#1236 From: rick@us.ibm.com Reported version: R4 V4.2

bjhargrave commented 15 years ago

Comment author: rick@us.ibm.com

Recreate using TestGenericCollectionInjection.testListCollectionReferenceImport(). This also is in the org.osgi.test.cases.blueprint.java5 project.

Using a property target of:

/**
 * Set the injected reference list.
 *
 * @ param l
 */
public void setList(List<ServiceReference> l) {
    injectedList = l;
}

and XML configuration of:

<!-- This gets both a ServiceManager and a reference collection injected -->

The correct collection type is getting injected, but this collection does not appear to be getting updated when services are registered/unregistered. This also holds for injected .

bjhargrave commented 14 years ago

Comment author: glyn.normington@springsource.com

Closing old bug.