public abstract class DisposableTemplate extends Object implements Disposable, Serializable
doDispose()
,
MetaErrorListeners
,
Serialized FormConstructor 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()
Disposable
isDisposed
in interface Disposable
public final void dispose()
Disposable
dispose
in interface Disposable
public static long getNonDisposedObjectCounter()
protected abstract void doDispose()
Copyright © 2011–2020 Igor Maznitsa. All rights reserved.