Class DisposableReference<R>

java.lang.Object
java.lang.ref.Reference<R>
java.lang.ref.WeakReference<R>
org.microbean.bean.DisposableReference<R>
Type Parameters:
R - the type of the reference
All Implemented Interfaces:
AutoCloseable

public final class DisposableReference<R> extends WeakReference<R> implements AutoCloseable
An AutoCloseable WeakReference that formally disposes of referents after they have been cleared by the Java Virtual Machine during garbage collection.

Note that garbage collection may never happen.

Author:
Laird Nelson
See Also: