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

Field Summary
protected  ServiceRegistrar[] regs
          The registrars with which this event is associated.
 
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.
 
Method Summary
 ServiceRegistrar[] getRegistrars()
          Return the set of registrars to which this event applies.
 
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
 

Field Detail

regs

protected ServiceRegistrar[] regs
The registrars with which this event is associated.
Constructor Detail

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 event
regs - the registrars to which this event applies
Method Detail

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