|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.BTTProcessorNotifier
public class BTTProcessorNotifier
The DSENotifier class provides the capability to its objects to send and process event notifications. If a class has to send event notifications, it can be defined as a subclass of Notifier or it can implement the Notifier interface. The Notifier constructor registers the new Notifier instance to the EventsManager so it can manage the handlers, which are registering for local or remote events, in a transparent way for the application.
Field Summary | |
---|---|
protected Hashtable |
handlersList
|
protected java.lang.String |
name
|
Constructor Summary | |
---|---|
BTTProcessorNotifier()
This constructor creates a DSENotifier object. |
|
BTTProcessorNotifier(boolean mustRegister)
This constructor creates a DSENotifier with mustRegister. |
|
BTTProcessorNotifier(java.lang.String aName)
This constructor creates a DSENotifier with a name. |
|
BTTProcessorNotifier(java.lang.String aName,
java.lang.String aTID)
This constructor creates a DSENotifier with a name. |
Method Summary | |
---|---|
void |
addHandler(ProcessorHandler aHandler,
java.lang.String anEventName)
Adds an aHandler to the chain of handlers for the specific instance of DSENotifier. |
Hashtable |
getHandlersList()
Gets the handlersList attribute value. |
java.lang.String |
getName()
Gets the name attribute value. |
void |
removeHandler(ProcessorHandler aHandler,
java.lang.String anEventName)
Removes aHandler from the chain of handlers for that specific DSENotifier instance if the event it is interested in matches anEventName. |
void |
setName(java.lang.String aName)
Sets the notifier name to aName |
void |
signalEvent(BTTProcessorEventObject anEvent)
The operation must call the dispatch method of the first handler registered for this event, proceed according to the defined event propagation criteria, and follow the chain of handlers. |
void |
signalEvent(java.lang.String anEventName)
Generates, by default, the event named anEventName as a specific event. |
void |
signalEvent(java.lang.String anEventName,
Hashtable params)
Generates, by default, the event named anEventName as a specific event. |
void |
terminate()
Provides a housekeeping process for the notifier instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected Hashtable handlersList
Constructor Detail |
---|
public BTTProcessorNotifier()
public BTTProcessorNotifier(java.lang.String aName)
public BTTProcessorNotifier(java.lang.String aName, java.lang.String aTID)
public BTTProcessorNotifier(boolean mustRegister)
mustRegister
- booleanMethod Detail |
---|
public void addHandler(ProcessorHandler aHandler, java.lang.String anEventName) throws DSEInvalidArgumentException
addHandler
in interface ProcessorNotifier
DSEInvalidArgumentException
public Hashtable getHandlersList()
getHandlersList
in interface ProcessorNotifier
public java.lang.String getName()
getName
in interface ProcessorNotifier
public void removeHandler(ProcessorHandler aHandler, java.lang.String anEventName) throws DSEInvalidArgumentException, BTTProcessorHandlerNotFoundException
removeHandler
in interface ProcessorNotifier
DSEInvalidArgumentException
BTTProcessorHandlerNotFoundException
public void setName(java.lang.String aName)
setName
in interface ProcessorNotifier
public void signalEvent(BTTProcessorEventObject anEvent)
anEvent
- DSEEventObjectpublic void signalEvent(java.lang.String anEventName) throws DSEInvalidArgumentException
signalEvent
in interface ProcessorNotifier
anEventName
- java.lang.String
DSEInvalidArgumentException
public void signalEvent(java.lang.String anEventName, Hashtable params) throws DSEInvalidArgumentException
signalEvent
in interface ProcessorNotifier
DSEInvalidArgumentException
public void terminate() throws DSEException
terminate
in interface ProcessorNotifier
DSEException
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |