nl.tudelft.simulation.naming.listener
Interface RemoteContextListenerInterface

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
RemoteContextListener, RemoteContextListener_Stub

public interface RemoteContextListenerInterface
extends java.rmi.Remote

A remoteInterface for the ContextListener.

(c) copyright 2003 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Since:
1.4
Version:
1.2 Apr 14, 2004
Author:
Peter Jacobs

Method Summary
 void namingExceptionThrown(javax.naming.event.NamingExceptionEvent evt)
          Called when a naming exception is thrown while attempting to fire a NamingEvent.
 void objectAdded(javax.naming.event.NamingEvent evt)
          Called when an object has been added.
 void objectChanged(javax.naming.event.NamingEvent evt)
          Called when an object has been changed.
 void objectRemoved(javax.naming.event.NamingEvent evt)
          Called when an object has been removed.
 void objectRenamed(javax.naming.event.NamingEvent evt)
          Called when an object has been renamed.
 

Method Detail

objectAdded

public void objectAdded(javax.naming.event.NamingEvent evt)
                 throws java.rmi.RemoteException
Called when an object has been added.

The binding of the newly added object can be obtained using evt.getNewBinding().

Parameters:
evt - The nonnull event.
Throws:
java.rmi.RemoteException - on network failure
See Also:
NamingEvent.OBJECT_ADDED

objectRemoved

public void objectRemoved(javax.naming.event.NamingEvent evt)
                   throws java.rmi.RemoteException
Called when an object has been removed.

The binding of the newly removed object can be obtained using evt.getOldBinding().

Parameters:
evt - The nonnull event.
Throws:
java.rmi.RemoteException - on network failure
See Also:
NamingEvent.OBJECT_REMOVED

objectRenamed

public void objectRenamed(javax.naming.event.NamingEvent evt)
                   throws java.rmi.RemoteException
Called when an object has been renamed.

The binding of the renamed object can be obtained using evt.getNewBinding(). Its old binding (before the rename) can be obtained using evt.getOldBinding(). One of these may be null if the old/new binding was outside the scope in which the listener has registered interest.

Parameters:
evt - The nonnull event.
Throws:
java.rmi.RemoteException - on network failure
See Also:
NamingEvent.OBJECT_RENAMED

objectChanged

public void objectChanged(javax.naming.event.NamingEvent evt)
                   throws java.rmi.RemoteException
Called when an object has been changed.

The binding of the changed object can be obtained using evt.getNewBinding(). Its old binding (before the change) can be obtained using evt.getOldBinding().

Parameters:
evt - The nonnull naming event.
Throws:
java.rmi.RemoteException - on network failure.
See Also:
NamingEvent.OBJECT_CHANGED

namingExceptionThrown

public void namingExceptionThrown(javax.naming.event.NamingExceptionEvent evt)
                           throws java.rmi.RemoteException
Called when a naming exception is thrown while attempting to fire a NamingEvent.

Parameters:
evt - The nonnull event.
Throws:
java.rmi.RemoteException - on network exception
java.rmi.RemoteException - on network failure


Copyright © 2002-2004 Delft University of Technology, the Netherlands. All Rights Reserved.