Community
Participate
Working Groups
My reading/understanding of o.e.e.osgi.services.remoteserviceadmin.RemoteServiceAdmin.exportService(ServiceReference, Map<String, Object>) javadoc is, that the implementation is supposed to override any properties in the service reference with the one provided in the Map (except the explicitly excluded ones). Right now this is only done for the exported interfaces, intents and exported configs. However neither o.e.e.osgi.services.remoteserviceadmin.IHostContainerSelector.selectHostContainers(ServiceReference, String[], String[], String[]) nor o.e.e.osgi.services.remoteserviceadmin.IHostContainerSelector.selectHostContainers(ServiceReference, String[], String[], String[]) actually allow overriding properties to be passed in. This e.g. results in "ecf.exported.containerfactoryargs" being ignored by the host container selector.
Fix released to HEAD
Created attachment 192896 [details] mylyn/context/zip
Hi Markus. I realized last week that this was incomplete. What was the fix that you imposed? (I don't use mylyn myself). Is it an API change?...i.e. change to IHostContainerSelector? If so, I think we should get a waiver and include fix in 3.5.1 (given that RSA is nw to 3.5).
This fix works without changes to IHostContainerSelector. But I intend to open a new bug to also change the IHostContainerSelector API to be able to pass overriding properties to the selector.
(In reply to comment #4) > This fix works without changes to IHostContainerSelector. How does it do that? (I don't see the update on master yet) >But I intend to open > a new bug to also change the IHostContainerSelector API to be able to pass > overriding properties to the selector. Yeah, I think this is the thing to change...a Map as another argument to IHostContainerSelector. Since this is ECF-specific API, and not a huge API change, I suggest we get a waiver and include in 3.5.1.
(In reply to comment #5) > How does it do that? (I don't see the update on master yet) http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/commit/?id=0460ae315c12f6857dc1745718ee3a18a04358f7
(In reply to comment #6) > (In reply to comment #5) > > > How does it do that? (I don't see the update on master yet) > > http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/commit/?id=0460ae315c12f6857dc1745718ee3a18a04358f7 I don't understand what this actually does...could you please explain a little? Thanks.
(In reply to comment #7) > I don't understand what this actually does...could you please explain a little? > Thanks. It simply merges sref's properties and the overriding properties based on how the spec defines it. The resulting map is used to create/select the endpoint.