dev-guide:disposable-node
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dev-guide:disposable-node [2025/01/08 15:44] – gaetan | dev-guide:disposable-node [2025/01/08 16:16] (current) – gaetan | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| However, a Node can have attributes (fields in java) that require a specific dispose method (e.g [[: | However, a Node can have attributes (fields in java) that require a specific dispose method (e.g [[: | ||
| - | In most cases, the nodes are not " | + | In most cases, the nodes are not " |
| + | |||
| + | To ensure an object (that can be used as a Node's attribute) is disposed properly it should implements the [[https:// | ||
| + | |||
| + | ==== DisposableField interface ==== | ||
| + | |||
| + | In order to make the GraphManager dispose an attribute of a Node it (the field) simply needs to implement DisposableField. | ||
| - | 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
