|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gvsig.tools.dispose.impl.AbstractDisposable
public abstract class AbstractDisposable
Base implementation for Disposable
classes.
When an instance of this class is created, it is registered as in use, and it is removed in the dispose method.
Constructor Summary | |
---|---|
AbstractDisposable()
|
Method Summary | |
---|---|
void |
dispose()
Disposes the current object, to allow it to close and dispose any used resources. |
protected void |
dispose(Disposable disposable)
Utility method to dispose a Disposable , checking if it is null. |
protected abstract void |
doDispose()
Internal implementation for the dispose() method, to be
implemented by child classes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDisposable()
Method Detail |
---|
public final void dispose()
Disposable
NOTE:After calling this method, the object may not be usable anymore.
dispose
in interface Disposable
protected void dispose(Disposable disposable)
Disposable
, checking if it is null.
disposable
- to disposeprotected abstract void doDispose() throws BaseException
dispose()
method, to be
implemented by child classes.
BaseException
dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |