I was just digging around in the commons-io library and found this:
Keeps track of files awaiting deletion, and deletes them when an associated marker object is recla
Not sure if this really answers your question, but the finalize() method of an object is called prior to its resources being reclaimed.
Edit: Which means that you can send a message to another object to alert it, or something along those lines.