Enterprise Information Portal APIs

com.ibm.mm.beans
Class CMBExceptionSupport

java.lang.Object
  |
  +--com.ibm.mm.beans.CMBExceptionSupport
All Implemented Interfaces:
java.io.Serializable

public class CMBExceptionSupport
extends java.lang.Object
implements java.io.Serializable

This is a utility class that can be used by beans that broadcast CMBExceptionEvents.

Since:
6.1
See Also:
CMBExceptionListener, CMBExceptionEvent, Serialized Form

Constructor Summary
CMBExceptionSupport()
          Constructor.
CMBExceptionSupport(java.lang.Object source)
          Constructor.
 
Method Summary
 void addCMBExceptionListener(CMBExceptionListener listener)
          CMBExceptionEvent registration method.
 void fireCMBException(CMBExceptionEvent event)
          CMBExceptionEvent notification method.
 void fireCMBException(int id, java.lang.Exception exception)
          CMBExceptionEvent notification method.
 void fireCMBException(java.lang.String message)
          CMBExceptionEvent notification method.
 void fireCMBException(java.lang.Throwable exception)
          CMBExceptionEvent notification method.
 void removeCMBExceptionListener(CMBExceptionListener listener)
          CMBExceptionEvent unregistration method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMBExceptionSupport

public CMBExceptionSupport()
Constructor. This constructor can be used by non-serializable source. The event notificiation method used by that source then should be the one with an CMBExceptionEvent arguement.

CMBExceptionSupport

public CMBExceptionSupport(java.lang.Object source)
Constructor.
Parameters:
source - the bean or object to be given as the source for CMBExceptionEvent
Method Detail

addCMBExceptionListener

public void addCMBExceptionListener(CMBExceptionListener listener)
CMBExceptionEvent registration method. It ignores a registration request if the listener is already registered.
Parameters:
listener - listener to be registered

removeCMBExceptionListener

public void removeCMBExceptionListener(CMBExceptionListener listener)
CMBExceptionEvent unregistration method.
Parameters:
listener - listener to be unregistered

fireCMBException

public void fireCMBException(CMBExceptionEvent event)
CMBExceptionEvent notification method. This method can be used by non-serializable source which uses this class zero arguement constructor. The event firing order is based on the order of registration.
Parameters:
event - the exception event to post

fireCMBException

public void fireCMBException(int id,
                             java.lang.Exception exception)
CMBExceptionEvent notification method. The event firing order is based on the order of registration.
Parameters:
message - the message to build an user-error type of exception

fireCMBException

public void fireCMBException(java.lang.String message)
CMBExceptionEvent notification method. A CMB_EXCEPTION_USER type exception. The event firing order is based on the order of registration.
Parameters:
message - the user error message

fireCMBException

public void fireCMBException(java.lang.Throwable exception)
CMBExceptionEvent notification method. A CMB_EXCEPTION_SYSTEM type exception. The event firing order is based on the order of registration.
Parameters:
exception - the system error exception object

EIP JavaBeans

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.