concept Leaky Abstractions in category dependency injection
appears as: Leaky Abstractions

This is an excerpt from Manning's book Dependency Injection.
Disposing the Repository is required when the used implementation holds on to resources, such as database connections, that should be closed in a deterministic fashion. Although an implementation might require deterministic cleanup, that doesn’t imply that it should be the responsibility of the consumer to ensure proper cleanup. This brings us to the concept of Leaky Abstractions.
Table 8.2 Bad Lifestyle choices covered in this section (view table figure)
Subject Type Description Captive Dependencies Bug Keeps Dependencies referenced beyond their expected lifetime Leaky Abstractions Design issue Uses Leaky Abstractions, leaking Lifestyle choices to consumers Per-thread Lifestyle Bug Causes concurrency bugs by tying instances to the lifetime of a thread