User Tools

Site Tools


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.

pointers or references from that Node to other objects might not be disposed properly. In that case, it is possible to manually define how a Node should

dev-guide/disposable-node.1736347447.txt.gz · Last modified: 2025/01/08 15:44 by gaetan