Background
Part of #363 — Phase 3
Replace lightweight_di_container in logger_system with common_system::service_container registration.
Scope
- Replace
lightweight_di_container<T> (string-based) with type-based service_container registration
- Update writer/formatter/filter factory patterns
- Remove
lightweight_di_container.h, di_container_interface.h, lightweight_container.h
- Update
service_registration.h to use ModuleRegistrar concept
- Verify all logger_system tests pass
Key Migration Points
- String-based
resolve("name") → Type-based resolve<IWriter>()
register_factory() / register_singleton() → register_factory<T>() with service_lifetime
- Error codes: logger-specific →
common::di::di_error_codes
Affected Files
src/impl/di/lightweight_di_container.h (remove)
src/impl/di/di_container_interface.h (remove)
src/impl/di/lightweight_container.h (remove)
include/kcenon/logger/di/service_registration.h (update)
tests/unit/di_test/di_container_test.cpp (update)
Acceptance Criteria
Background
Part of #363 — Phase 3
Replace
lightweight_di_containerin logger_system withcommon_system::service_containerregistration.Scope
lightweight_di_container<T>(string-based) with type-basedservice_containerregistrationlightweight_di_container.h,di_container_interface.h,lightweight_container.hservice_registration.hto useModuleRegistrarconceptKey Migration Points
resolve("name")→ Type-basedresolve<IWriter>()register_factory()/register_singleton()→register_factory<T>()withservice_lifetimecommon::di::di_error_codesAffected Files
src/impl/di/lightweight_di_container.h(remove)src/impl/di/di_container_interface.h(remove)src/impl/di/lightweight_container.h(remove)include/kcenon/logger/di/service_registration.h(update)tests/unit/di_test/di_container_test.cpp(update)Acceptance Criteria
lightweight_di_containerremovedservice_container