Package ghidra.framework.data
Class TransientDataManager
java.lang.Object
ghidra.framework.data.TransientDataManager
Simple static class to keep track of transient domain file/domain objects.
When new domain objects are created, they may not have an associated DomainFile.
In this case, a DomainFileProxy is created to contain it. DomainFileProxy objects
will add themselves to this Manager whenever a tool is using the associated
DomainObject and will remove itself all the tools have released the domainObject.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addTransient
(DomainFileProxy domainFile) Adds the given transient domain file to the list.static void
clearAll()
Removes all transients from the list.static void
Populates the given array list with all the transients.static void
releaseFiles
(Object consumer) Releases all files for the given consumer.static void
removeTransient
(DomainFileProxy domainFile) Removes the given transient domain file from the list.
-
Method Details
-
addTransient
Adds the given transient domain file to the list.- Parameters:
domainFile
- the transient domain file to add to the list
-
removeTransient
Removes the given transient domain file from the list.- Parameters:
domainFile
- the transient domain file to remove
-
clearAll
public static void clearAll()Removes all transients from the list. -
getTransients
Populates the given array list with all the transients.- Parameters:
l
- the list populate with the transients
-
releaseFiles
Releases all files for the given consumer.- Parameters:
consumer
- the domain file consumer
-