What problem does it solve?
WireBox DI simplifies and centralizes the creation, wiring, and lifecycle management of application components so developers avoid manual object construction, brittle coupling, and scope-widening errors.
Core Features & Use Cases
- Binder configuration and mapping DSL to register aliases, paths, directories, and factory methods for consistent object resolution.
- Scope and lifecycle management including singletons, request/session/application scopes, CacheBox persistence, and Provider patterns to prevent scope-widening.
- Advanced patterns: child injectors for isolation, virtual inheritance, lazy properties, property observers, object delegation, and an object populator for hydrating components from structs, JSON, XML, or queries.
Quick Start
Generate a binder configuration that maps your service classes, demonstrates provider-based injection to avoid scope-widening, and resolves an instance using getInstance.