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
null is input to the listener parameter l.
@throws java.lang.IllegalStateException this exception occurs whenthis method is called after the terminate method has been called.
@see DiscoveryEvent
@see #removeDiscoveryListener
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, this method takes no action. 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 DiscoveryListenercorresponding to the listener to add to the set of listeners.
@throws java.lang.NullPointerException this exception occurs whennull is input to the listener parameter.
@see net.jini.discovery.DiscoveryListener
@see net.jini.discovery.DiscoveryManagement#addDiscoveryListener
@see #removeDiscoveryListener
null is input to the listener parameter l.
@throws java.lang.IllegalStateException this exception occurs whenthis method is called after the terminate method has been called.
@see #removeDiscoveryListener
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |