ubc.cs.JLog.Foundation
Class jPrologServiceListener

java.lang.Object
  extended by ubc.cs.JLog.Foundation.jPrologServiceListener

public abstract class jPrologServiceListener
extends java.lang.Object

The abstract listening component of the Observer pattern. Instances register with a broadcaster, and are notified to handle any broadcast events.

Author:
Glendon Holst

Constructor Summary
jPrologServiceListener()
           
 
Method Summary
 int getPriority()
          Return the priority level for listener (a partial ordering on notification order).
abstract  void handleEvent(jPrologServiceEvent e)
          Receive broadcast event for this class to process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

jPrologServiceListener

public jPrologServiceListener()
Method Detail

handleEvent

public abstract void handleEvent(jPrologServiceEvent e)
Receive broadcast event for this class to process.

Parameters:
e - The event that was sent. Use instanceOf to determine actual message type and content.

getPriority

public int getPriority()
Return the priority level for listener (a partial ordering on notification order). Lower numbered events are notified before higher numbered events.

Returns:
An integer priority number.