org.modeshape.graph.observe
Class NetChangeObserver

java.lang.Object
  extended by org.modeshape.graph.observe.ChangeObserver
      extended by org.modeshape.graph.observe.NetChangeObserver
All Implemented Interfaces:
Observer

@ThreadSafe
public abstract class NetChangeObserver
extends ChangeObserver

A specialized Observer that figures out the net changes made during a single set of changes. For example, if a property is updated and then updated again, the net change will be a single change. Or, if a node is created and then deleted, no net change will be observed.


Nested Class Summary
static class NetChangeObserver.ChangeType
           
static class NetChangeObserver.NetChange
          A notification of changes to a node.
static class NetChangeObserver.NetChanges
          A set of net changes that were made atomically.
 
Method Summary
 void notify(Changes changes)
          Method that is called for each Changes from the Observable instance(s) with which this listener is registered.
 
Methods inherited from class org.modeshape.graph.observe.ChangeObserver
isRegistered, unregister
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

notify

public void notify(Changes changes)
Method that is called for each Changes from the Observable instance(s) with which this listener is registered.

Specified by:
notify in interface Observer
Specified by:
notify in class ChangeObserver
Parameters:
changes - the change set
See Also:
ChangeObserver.notify(org.modeshape.graph.observe.Changes)


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.