public class CloseableImpl extends java.lang.Object implements CloseableWithNotification
| Constructor and Description | 
|---|
CloseableImpl(Closeable facade)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addCloseListener(CloseListener listener)
Adds the given listener to this  
Closeable object, such that it
 will be notified when this object either is about to be, or just has been,
 closed. | 
void | 
close()
Instructs this  
Closeable instance to close. | 
void | 
doClose()  | 
boolean | 
isClosed()
Indicates whether this  
Closeable instance has been closed or 
 not. | 
void | 
removeCloseListener(CloseListener listener)
Removes the given listener from this  
Closeable object, such
 that it will no longer be notified when this object either is about to be,
 or just has been, closed. | 
public CloseableImpl(Closeable facade)
public void addCloseListener(CloseListener listener)
CloseableWithNotificationCloseable object, such that it
 will be notified when this object either is about to be, or just has been,
 closed.  If the given listener has already been added to this object, then
 this method has no effect.addCloseListener in interface CloseableWithNotificationlistener - the listenerpublic void removeCloseListener(CloseListener listener)
CloseableWithNotificationCloseable object, such
 that it will no longer be notified when this object either is about to be,
 or just has been, closed.  If the given listener has never been added to 
 this object, then this method has no effect.removeCloseListener in interface CloseableWithNotificationlistener - the listenerpublic boolean isClosed()
CloseableCloseable instance has been closed or 
 not.public void close()
CloseableCloseable instance to close.public void doClose()