org.apache.ode.utils
Class WatchDog.DefaultObserver

java.lang.Object
  extended by org.apache.ode.utils.WatchDog.DefaultObserver
All Implemented Interfaces:
WatchDog.Observer
Enclosing class:
WatchDog<T,C extends WatchDog.Observer>

public static class WatchDog.DefaultObserver
extends java.lang.Object
implements WatchDog.Observer

A default implementation of #ChangeHandler. Delete and Update will both invoke the #init method which satifies most use cases. So subclasses may simply override the #init method to fit their own needs.


Constructor Summary
WatchDog.DefaultObserver()
           
 
Method Summary
 void init()
          empty implementation
 boolean isInitialized()
           
 void onDelete()
          delegate to #init
 void onUpdate()
          delegate to #init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WatchDog.DefaultObserver

public WatchDog.DefaultObserver()
Method Detail

isInitialized

public boolean isInitialized()
Specified by:
isInitialized in interface WatchDog.Observer
Returns:
true

init

public void init()
empty implementation

Specified by:
init in interface WatchDog.Observer

onDelete

public void onDelete()
delegate to #init

Specified by:
onDelete in interface WatchDog.Observer

onUpdate

public void onUpdate()
delegate to #init

Specified by:
onUpdate in interface WatchDog.Observer