|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used by classes to process the events generated by Notifier instances. These Handler classes are organized by the EventManager or a specific Notifier in a chain structure that stores information about the event in which they are interested and, in the case of the EventManager, the component that fires the event. The Handler classes must have an attribute named "handleEventFrom." This attribute identifies the remote workstation that is the source of the events. The Handler, when it receives control to dispatch the event, may or may not process the event before passing the event to the next handler in the chain or stopping the event propagation. Each class that includes the Handler interface must implement all of these methods.
Method Summary | |
---|---|
Handler |
dispatchEvent(DSEEventObject anEvent)
Checks to see if the Handler is interested in the event. |
void |
handleEvent(java.lang.String anEventName,
java.lang.String aNotifierName,
Context aContext)
Indicates that the Handler is interested in the event anEventName. |
void |
handleEvent(java.lang.String anEventName,
java.lang.String aNotifierName,
Context aContext,
java.lang.String aTID)
Indicates that the Handler is interested in the event anEventName. |
void |
stopHandlingEvent(java.lang.String anEventName,
java.lang.String aNotifierName,
Context aContext)
Removes the Handler from the list of Handlers for the specific event. |
void |
stopHandlingEvent(java.lang.String anEventName,
java.lang.String aNotifierName,
Context aContext,
java.lang.String aTID)
Removes the Handler from the list of Handlers for the specific event. |
Method Detail |
public Handler dispatchEvent(DSEEventObject anEvent)
public void handleEvent(java.lang.String anEventName, java.lang.String aNotifierName, Context aContext) throws DSEInvalidArgumentException
DSEInvalidArgumentException
public void handleEvent(java.lang.String anEventName, java.lang.String aNotifierName, Context aContext, java.lang.String aTID) throws DSEInvalidArgumentException
DSEInvalidArgumentException
public void stopHandlingEvent(java.lang.String anEventName, java.lang.String aNotifierName, Context aContext) throws DSEInvalidArgumentException, DSEHandlerNotFoundException
DSEInvalidArgumentException
DSEHandlerNotFoundException
public void stopHandlingEvent(java.lang.String anEventName, java.lang.String aNotifierName, Context aContext, java.lang.String aTID) throws DSEInvalidArgumentException, DSEHandlerNotFoundException
DSEInvalidArgumentException
DSEHandlerNotFoundException
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |