ServiceDiscoveryListener
object with the event mechanism of a LookupCache
. The listener object will receive a ServiceDiscoveryEvent
upon the discovery, removal, or modification of one of the cache's services. Once a listener is registered, it will be notified of all service references discovered to date, and will be notified as new services are discovered and existing services are modified or discarded. If the parameter value duplicates (using equals
) another element in the set of listeners, no action is taken. If the parameter value is null
, a NullPointerException
is thrown.
@param listener the ServiceDiscoveryListener
object toregister.
@throws java.lang.NullPointerException this exception occurs whennull
is input to the listener
parameter.
@see #removeListener
|
|