LifecycleBoundResources
interface LifecycleBoundResources
Lifecycle-bound Resources
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.
Resources are registered via the register method, optionally de-registered via the unregister method, and always closed when persisted to terminal close.
Note that lifecycle-bound resource groups are not necessarily Closeable or AutoCloseable themselves.
Inheritors
Functions
Link copied to clipboard
Register an AutoCloseable resource to this lifecycle.
Unregister an AutoCloseable resource from this lifecycle.