Class Instance<I>

java.lang.Object
org.microbean.scopelet.Instance<I>
Type Parameters:
I - the type of the instance
All Implemented Interfaces:
AutoCloseable, Supplier<I>

public final class Instance<I> extends Object implements AutoCloseable, Supplier<I>
An AutoCloseable pairing of an instance that can be destroyed with a Instance.Destructor that can destroy it and an AutoCloseable that can release its dependent objects when needed.
Author:
Laird Nelson