public abstract class DisposableTemplate extends Object implements Disposable, Serializable
doDispose(),
MetaErrorListeners,
Serialized Form| Constructor and Description |
|---|
DisposableTemplate()
The Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertNotDisposed()
Auxiliary method to ensure that the object is not disposed.
|
void |
dispose()
Dispose object.
|
protected abstract void |
doDispose()
The Template method is called once during disposing.
|
static long |
getNonDisposedObjectCounter()
Get the current number of created but not disposed object which have DisposableTemplate as super class.
|
boolean |
isDisposed()
Check that the object is disposed.
|
protected void assertNotDisposed()
AlreadyDisposedError - if the object has been already disposed, with notification of the global error listenerspublic boolean isDisposed()
DisposableisDisposed in interface Disposablepublic final void dispose()
Disposabledispose in interface Disposablepublic static long getNonDisposedObjectCounter()
protected abstract void doDispose()
Copyright © 2011–2022 Igor Maznitsa. All rights reserved.