Enterprise Information Portal APIs

com.ibm.mm.beans
Class CMBSchemaReplySupport

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

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

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

Since:
6.1
See Also:
CMBSchemaReplyEvent, CMBSchemaReplyListener, Serialized Form

Constructor Summary
CMBSchemaReplySupport()
          Constructor.
CMBSchemaReplySupport(java.lang.Object source)
          Constructor.
 
Method Summary
 void addCMBSchemaReplyListener(CMBSchemaReplyListener listener)
          CMBSchemaReplyEvent registration method.
 void fireCMBSchemaReply(CMBSchemaReplyEvent evt)
          CMBSchemaReplyEvent notification method.
 void fireCMBSchemaReply(int id, java.lang.Exception data)
          Reply a failed request, exception object provided.
 void fireCMBSchemaReply(int id, int reply)
          CMBSchemaReplyEvent notification method.
 void fireCMBSchemaReply(int id, java.lang.String[] data)
          Reply a succeeded request, result data provided.
 void removeCMBSchemaReplyListener(CMBSchemaReplyListener listener)
          CMBSchemaReplyEvent unregistration method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMBSchemaReplySupport

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

CMBSchemaReplySupport

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

addCMBSchemaReplyListener

public void addCMBSchemaReplyListener(CMBSchemaReplyListener listener)
CMBSchemaReplyEvent registration method. It ignores a registration request if the listener is already registered.
Parameters:
listener - listener to be registered

removeCMBSchemaReplyListener

public void removeCMBSchemaReplyListener(CMBSchemaReplyListener listener)
CMBSchemaReplyEvent unregistration method.
Parameters:
listener - listener to be unregistered

fireCMBSchemaReply

public void fireCMBSchemaReply(CMBSchemaReplyEvent evt)
CMBSchemaReplyEvent 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:
evt - the CMBSchemaReplyEvent

fireCMBSchemaReply

public void fireCMBSchemaReply(int id,
                               int reply)
CMBSchemaReplyEvent notification method.
Parameters:
id - the event type id
reply - the reply status

fireCMBSchemaReply

public void fireCMBSchemaReply(int id,
                               java.lang.String[] data)
Reply a succeeded request, result data provided.
Parameters:
id - the event type id
data - list of result data

fireCMBSchemaReply

public void fireCMBSchemaReply(int id,
                               java.lang.Exception data)
Reply a failed request, exception object provided.
Parameters:
id - the event type id
data - the exception object

EIP JavaBeans

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