org.sapia.ubik.rmi.naming.remote.discovery
Class ServiceDiscoveryEvent

java.lang.Object
  extended by org.sapia.ubik.rmi.naming.remote.discovery.ServiceDiscoveryEvent

public class ServiceDiscoveryEvent
extends java.lang.Object

This class models an event that is triggered by the binding of a new object in the ReliableRemoteContext.

Client-side ServiceDiscoListeners are used to trap instances of this class.

This allows client apps to be notified when new services are bound into the JNDI.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Constructor Summary
ServiceDiscoveryEvent(java.util.Properties attributes, java.lang.String name, java.lang.Object service)
          Constructor for ServiceDiscoveryEvent.
 
Method Summary
 java.util.Properties getAttributes()
           
 java.lang.String getName()
          Returns the name under which the service was bound.
 java.lang.Object getService()
          Returns the service that was bound.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceDiscoveryEvent

public ServiceDiscoveryEvent(java.util.Properties attributes,
                             java.lang.String name,
                             java.lang.Object service)
Constructor for ServiceDiscoveryEvent.

Method Detail

getName

public java.lang.String getName()
Returns the name under which the service was bound.

Returns:
a name.

getService

public java.lang.Object getService()
                            throws java.rmi.RemoteException
Returns the service that was bound.

Returns:
an Object.
Throws:
java.rmi.RemoteException

getAttributes

public java.util.Properties getAttributes()
Returns:
the Properties corresponding to the attributes used to bind the service within this instance.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 Sapia OSS. All Rights Reserved.