Prism.extensions.connector.handler
Class AbstractHandler

java.lang.Object
  extended by Prism.extensions.connector.handler.AbstractHandler
Direct Known Subclasses:
C2Handler, PipeFilterHandler, PubSubHandler

public abstract class AbstractHandler
extends java.lang.Object

This abstract class is extended by any Handler class in Prism. The Handler provides a mechanism for event distribution that complies with a particular event distribution policy. A handler is assigned to a connector.

Version:
2.0
Author:
USC Soft. Arch. Group. Contact: Sam Malek malek@usc.edu

Constructor Summary
AbstractHandler()
           
 
Method Summary
abstract  void handle(Event e)
          The implementation of this method shall provide the distribution policy and rules.
abstract  void setParentConnector(IConnector conn)
          The implementation shall allow the Handler object to set its parent conector.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHandler

public AbstractHandler()
Method Detail

handle

public abstract void handle(Event e)
The implementation of this method shall provide the distribution policy and rules.

Parameters:
e - Incoming event to be distributed

setParentConnector

public abstract void setParentConnector(IConnector conn)
The implementation shall allow the Handler object to set its parent conector.

Parameters:
conn - parent connector of this Handler object