Skip to main content

InjectContainer

InjectContainer is a high-performance, thread-safe Dependency Injection (DI) framework for Delphi. It decouples classes and interfaces dynamically with minimal runtime overhead, using a custom RTTI cache, object instantiation pooling, and automatic circular dependency detection.

Where to start

Guides

Architecture

Scope

Covers: DI lifecycle management (Singleton, Factory, LazyLoad, Interface-to-class), thread-safe container, RTTI cache, circular dependency detection, lifecycle logging, child injectors, and instance pooling for Delphi XE or higher across Win32 / Win64 / Linux64.

Does not cover: IoC container wiring via attributes/annotations, AOP interception, or HTTP/framework middleware — InjectContainer is a pure DI kernel.