org.exolab.core.messenger
Class ConnectionEventNotifier

java.lang.Object
  extended byorg.exolab.core.messenger.ConnectionEventNotifier

public class ConnectionEventNotifier
extends java.lang.Object

A helper class for managing ConnectionEventListener instances and notifying them of any events

Version:
$Revision: 1.3 $ $Date: 2002/02/20 10:23:48 $
Author:
Tim Anderson
See Also:
Connection

Constructor Summary
ConnectionEventNotifier()
           
 
Method Summary
 void addConnectionEventListener(ConnectionEventListener listener)
          Add a listener for connection events
 void closed(Connection connection)
          Invoked when the connection is closed
 void error(Connection connection, java.lang.Exception exception)
          Invoked when a fatal connection error occurs, just before an Exception is thrown to the application
 void removeConnectionEventListener(ConnectionEventListener listener)
          Remove a listener of connection events
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionEventNotifier

public ConnectionEventNotifier()
Method Detail

addConnectionEventListener

public void addConnectionEventListener(ConnectionEventListener listener)
Add a listener for connection events

Parameters:
listener - the listener to add

removeConnectionEventListener

public void removeConnectionEventListener(ConnectionEventListener listener)
Remove a listener of connection events

Parameters:
listener - the listener to remove

closed

public void closed(Connection connection)
Invoked when the connection is closed

Parameters:
connection - the closed connection

error

public void error(Connection connection,
                  java.lang.Exception exception)
Invoked when a fatal connection error occurs, just before an Exception is thrown to the application

Parameters:
connection - the connection the error occurred on
exception - the error


Copyright © 1999-2005 The Exolab Group. All Rights Reserved.