Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Communications Framework (ECF) » Question about method asProperties( ) in ServiceProperties (in ECF discovery)
Question about method asProperties( ) in ServiceProperties (in ECF discovery) [message #623462] Fri, 25 April 2008 09:50 Go to previous message
Phuong Hoang is currently offline Phuong Hoang
Messages: 10
Registered: July 2009
Junior Member
Hi again,

I have a question about the behavior of method asProperties() in
ServiceProperties

public Properties asProperties( ){

return new Properties(props);

}

=> This does not return copy of Properties object BUT return an empty
Properties with the default list containing the same elements as variable
ServiceProperties.props instead. Is this what it supposed to behave or is
this a bug???

The reason I ask because using the jslp provider for ECF, when register the
service with non-empty ServiceProperties it results in service registered
with no attribute registered. This happens because when jslp enumerates the
list of attributes to register for the service, it applies method
java.util.Dictionary.keys( ) on ServiceProperties.asProperties( ) and got an
empty list returned (since keys in non-empty default list is not considered
as existing keys, I think).



Phuong
 
Read Message
Read Message
Read Message
Read Message
Previous Topic:How to implement a new provider
Next Topic:Questions about ECF discovery with jSLP provider
Goto Forum:
  


Current Time: Thu May 23 22:53:40 EDT 2013

Powered by FUDForum. Page generated in 0.02167 seconds