Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ecf-dev] Expected behavior of IRemoteServiceContainerAdapter#getRemoteServiceReferences ?

What is the expected behavior of
org.eclipse.ecf.remoteservice.IRemoteServiceContainerAdapter#getRemoteServic
eReferences when there are no results to be returned. The test cases check
for an empty array. This is not the "usual OSGi way", where these kinds of
methods return null in case of no results. (see, e.g.,
BundleContext#getServiceReferences in the specs) The elegance of this can be
questioned since it typically leads to an additional null check but it's
probably what people expect.

Cheers, 

Jan.

------------------------------------------------------------
ETH Zurich, MSc Jan S. Rellermeyer,
Information and Communication Systems Research Group (IKS), 
Department of Computer Science, 
IFW B 47.1, Haldeneggsteig 4, CH–8092 Zürich Tel +41 44 632 30 38,
http://www.iks.inf.ethz.ch
------------------------------------------------------------ 





Back to the top