org.nakedobjects.runtime.transaction.updatenotifier
Class UpdateNotifierDefault

java.lang.Object
  extended by org.nakedobjects.runtime.transaction.updatenotifier.UpdateNotifierAbstract
      extended by org.nakedobjects.runtime.transaction.updatenotifier.UpdateNotifierDefault
All Implemented Interfaces:
Component, Injectable, TransactionScopedComponent, DebugInfo, UpdateNotifier

public class UpdateNotifierDefault
extends UpdateNotifierAbstract
implements DebugInfo


Constructor Summary
UpdateNotifierDefault()
           
 
Method Summary
 void addChangedObject(NakedObject adapter)
          Used by the framework to add objects that have just changed.
 void addDisposedObject(NakedObject adapter)
          Used by the framework to add objects that have just been disposed of.
 void clear()
           
 void debugData(DebugString debug)
           
 java.lang.String debugTitle()
           
 void ensureEmpty()
           
 java.util.List<NakedObject> getChangedObjects()
          Returns an immutable List of changed objects.
 java.util.List<NakedObject> getDisposedObjects()
          Returns an immutable List of disposed objects.
 java.lang.String toString()
           
 
Methods inherited from class org.nakedobjects.runtime.transaction.updatenotifier.UpdateNotifierAbstract
injectInto
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateNotifierDefault

public UpdateNotifierDefault()
Method Detail

addChangedObject

public void addChangedObject(NakedObject adapter)
Description copied from interface: UpdateNotifier
Used by the framework to add objects that have just changed.

Specified by:
addChangedObject in interface UpdateNotifier

getChangedObjects

public java.util.List<NakedObject> getChangedObjects()
Description copied from interface: UpdateNotifier
Returns an immutable List of changed objects.

Each changed object that was added is only ever provided during one call to this method so the list must be processed fully to avoid missing updates.

Specified by:
getChangedObjects in interface UpdateNotifier

addDisposedObject

public void addDisposedObject(NakedObject adapter)
Description copied from interface: UpdateNotifier
Used by the framework to add objects that have just been disposed of.

Specified by:
addDisposedObject in interface UpdateNotifier

getDisposedObjects

public java.util.List<NakedObject> getDisposedObjects()
Description copied from interface: UpdateNotifier
Returns an immutable List of disposed objects.

Each object that was disposed of is only ever provided during one call to this method so the list must be processed fully to avoid missing deletions.

Specified by:
getDisposedObjects in interface UpdateNotifier

ensureEmpty

public void ensureEmpty()
Specified by:
ensureEmpty in interface UpdateNotifier

clear

public void clear()
Specified by:
clear in interface UpdateNotifier

debugData

public void debugData(DebugString debug)
Specified by:
debugData in interface DebugInfo

debugTitle

public java.lang.String debugTitle()
Specified by:
debugTitle in interface DebugInfo

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.