DiscoveryListener
to the set of objects listening for discovery events. Once the listener is registered, it will be notified of all lookup services discovered to date, and will then be notified as new lookup services are discovered or existing lookup services are discarded. If null
is input to this method, a NullPointerException
is thrown. If the listener input to this method duplicates (using the equals
method) another element in the current set of listeners, no action is taken.
@param listener an instance of DiscoveryListener
corresponding to the listener to add to the set of listeners.
@throws java.lang.NullPointerException if null
isinput to the listener
parameter
@see #removeDiscoveryListener
@see net.jini.discovery.DiscoveryListener
|
|