|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gvsig.tools.dispose.impl.DefaultDisposableManager
public class DefaultDisposableManager
Default implementation for the DisposableManager
.
Constructor Summary | |
---|---|
DefaultDisposableManager()
Creates a new DefaultDisposableManager . |
Method Summary | |
---|---|
boolean |
bind(Disposable disposable)
Registers a disposable as being in use. |
int |
getBoundDisposableCount()
Returns the number of Disposable objects pending to be released. |
Set |
getBoundDisposables()
Returns a Set of Disposable objects currently bound. |
boolean |
release(Disposable disposable)
Marks a disposable as not being used anymore. |
void |
releaseAll()
Releases all bound Disposable s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDisposableManager()
DefaultDisposableManager
.
Method Detail |
---|
public boolean bind(Disposable disposable)
DisposableManager
bind
in interface DisposableManager
disposable
- to bind
public boolean release(Disposable disposable)
DisposableManager
release
in interface DisposableManager
disposable
- to release
public void releaseAll() throws BaseException
DisposableManager
Disposable
s.
releaseAll
in interface DisposableManager
BaseException
- if there is an error disposing any of the bound disposablespublic int getBoundDisposableCount()
DisposableManager
getBoundDisposableCount
in interface DisposableManager
public Set getBoundDisposables()
DisposableManager
Set
of Disposable
objects currently bound.
getBoundDisposables
in interface DisposableManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |