dev-guide:disposable-node
This is an old revision of the document!
Disposable Nodes/Fields
A Node is considered deleted when it is removed from the graph. The Node is made “transient”, i.e. it is not handled by the persistence manager anymore.
Once a Node is “transient” it will be automatically garbage collected by Java. However, a Node can have attributes (fields in java) that require a specific dispose method (e.g cloud objects, or secondary graph).
In most cases, the nodes are not “informed” that they are made transient, thus it is not convenient to add a listener on them (see GroIMP's graph listeners). Indeed, when a Node is deleted, if it has connected edges of Node that are not connected to the graph anymore, they all are deleted. But only the first one is visited.
dev-guide/disposable-node.1736348037.txt.gz · Last modified: 2025/01/08 15:53 by gaetan