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
Direct Known Subclasses:
RepositoryService.ConfigurationChangeObserver, SequencingService.RepositoryObserver

@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.
 
Nested classes/interfaces inherited from class org.modeshape.graph.observe.ChangeObserver
ChangeObserver.ChangeSourceReference
 
Constructor Summary
protected NetChangeObserver()
           
 
Method Summary
 void notify(Changes changes)
          Method that is called for each Changes from the Observable instance(s) with which this listener is registered.
protected abstract  void notify(NetChangeObserver.NetChanges netChanges)
          Method that is called for the set of net changes.
 
Methods inherited from class org.modeshape.graph.observe.ChangeObserver
doUnregister, isRegistered, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetChangeObserver

protected NetChangeObserver()
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)

notify

protected abstract void notify(NetChangeObserver.NetChanges netChanges)
Method that is called for the set of net changes.

Parameters:
netChanges - the net changes; never null


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