Package-level declarations

Types

Link copied to clipboard

Describes a single "bound resource," which is held within the context of a LifecycleBoundResources instance; such resources have a weak reference back to their owner, and are automatically closed when the owner is closed.

Link copied to clipboard

Describes a pattern wherein resources (Closeable or AutoCloseable instances) are bound to a lifecycle, such that they are automatically closed when the lifecycle is closed.

Link copied to clipboard

Simple implementation of LifecycleBoundResources, which propagates close calls to resources registered to it. Implementations are intended to use delegation: