Class ResourceTracker

java.lang.Object
de.intarsys.tools.resourcetracker.ResourceTracker

public abstract class ResourceTracker extends Object
An object to keep track of platform resources that should be disposed upon garbage collection of some container object.

To use this create a subclass implementing the dispose strategy and add new resources using "track".

The resources will be disposed automatically after garbage collection of the container in a separate worker thread.