public interface IDisposable
No implement by clients.
Modifier and Type | Interface and Description |
---|---|
static class |
IDisposable.DisposableUtil
A public helper util that can be used to check the dispose state of an
element.
|
static class |
IDisposable.DisposeException
Will be thrown if disposed objects are accessed.
|
static interface |
IDisposable.Listener
A listener that is notified if the observed object was disposed.
|
Modifier and Type | Method and Description |
---|---|
void |
addDisposeListener(IDisposable.Listener listener)
Adds a listener which will be notified if the object was disposed.
Adding a listener twice has no effect. |
void |
dispose()
If called, the element will be disposed.
|
boolean |
isDisposed()
Returns true, if this object was already disposed.
|
boolean |
isDisposing()
Returns true, during the disposal process.
|
void |
removeDisposeListener(IDisposable.Listener listener)
Remove the dispose listener.
|
boolean isDisposing()
boolean isDisposed()
void dispose()
Calling this method twice is allowed.
void addDisposeListener(IDisposable.Listener listener)
listener
- Listener to be addedvoid removeDisposeListener(IDisposable.Listener listener)
listener
- Listener to be removedCopyright © 2013-2016 Loetz GmbH&Co.KG - Heidelberg - Germany, Eclipse OSBP Project, OS.bee