net.jini.discovery
Class DiscoveryEvent
java.lang.Object
|
+--java.util.EventObject
|
+--net.jini.discovery.DiscoveryEvent
- public class DiscoveryEvent
- extends java.util.EventObject
Event object passed (via the DiscoveryListener interface) to indicate to
interested parties that one or more ServiceRegistrar
objects have been discovered or discarded by a LookupDiscovery
object.
- See Also:
LookupDiscovery
,
DiscoveryListener
,
ServiceRegistrar
, Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
DiscoveryEvent(java.lang.Object source,
ServiceRegistrar[] regs)
Construct a new DiscoveryEvent object, with the given source
and set of registrars. |
Methods inherited from class java.util.EventObject |
getSource,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
regs
protected ServiceRegistrar[] regs
- The registrars with which this event is associated.
DiscoveryEvent
public DiscoveryEvent(java.lang.Object source,
ServiceRegistrar[] regs)
- Construct a new DiscoveryEvent object, with the given source
and set of registrars. The set of registrars should not be
empty.
- Parameters:
source
- the source of this eventregs
- the registrars to which this event applies
getRegistrars
public ServiceRegistrar[] getRegistrars()
- Return the set of registrars to which this event applies.
The same array is returned on every call; a copy is not made.
Copyright © 1999 Sun Microsystems, Inc. All rights reserved