public interface Disposable
dispose() method directly,
but register your object to be chained with a parent disposable via Disposer.register(Disposable, Disposable).
If you're 100% sure that you should control the disposal of your object manually,
do not call the dispose() method either. Use Disposer.dispose(Disposable) instead, since
there might be any object registered in chain.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Disposable.Parent |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Usually not invoked directly, see class javadoc.
|