stomp.jdo
Class AbstractRefreshListener

java.lang.Object
  |
  +--stomp.jdo.AbstractRefreshListener
All Implemented Interfaces:
java.lang.Comparable, RefreshListener

public abstract class AbstractRefreshListener
extends java.lang.Object
implements RefreshListener

basic implementation of RefreshListener interface. Takes care of the priority of the listener, in case clients ( as is often the case ) don't need to worry about when this listener is called.

Author:
Eric Lindauer

Field Summary
static int AVERAGE_PRIORITY
           
 
Constructor Summary
AbstractRefreshListener()
           
AbstractRefreshListener(int priority)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 int getPriority()
          returns the relative priority of this listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface stomp.jdo.RefreshListener
objectDeleted, objectRefreshed
 

Field Detail

AVERAGE_PRIORITY

public static final int AVERAGE_PRIORITY
See Also:
Constant Field Values
Constructor Detail

AbstractRefreshListener

public AbstractRefreshListener()

AbstractRefreshListener

public AbstractRefreshListener(int priority)
Method Detail

getPriority

public int getPriority()
Description copied from interface: RefreshListener
returns the relative priority of this listener. This allows clients to control the order that refresh callbacks are made wherever needed

Specified by:
getPriority in interface RefreshListener

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable