|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ManagedObjectRemoval
An interface that managed objects should implement in order to be notified
when they are being removed from the DataManager
. When the DataManager.removeObject
method is called on an
object that implements this interface, that method will first call removingObject
before removing the object from the data
manager. Managed objects containing references to other managed objects
that should be removed when the main object is removed can implement the
removingObject
method to remove those referred-to objects. The
removingObject
method will not be called if this object has already
been removed or is not currently managed by the data manager.
Note that the implementation of removingObject
should make sure that
it only removes objects that are logically "owned" by the main object, and
that objects are not removed more than once. In particular, the
implementation should not call DataManager.removeObject
on the main
object itself.
DataManager.removeObject
Method Summary | |
---|---|
void |
removingObject()
Performs additional operations that are needed when this object is removed. |
Method Detail |
---|
void removingObject()
|
Project Darkstar, Version 0.9.9.6 2009-05-08 15:39:40 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |