public interface CloseListener
extends java.util.EventListener
CloseListener
interface defines the contract for an object that should be notified when a Closeable
object either is about to be, or just has been, closed.void willClose(Closeable closeable)
Closeable
object is in the process of closing. This listener should clean up any resources related to the given Closeable
object.closeable
- the Closeable
object that is closingvoid didClose(Closeable closeable)
Closeable
object has been closed.closeable
- the Closeable
object that has been closed