| commit | eeff3d7ecfaaad7ad3d63b59700e93fc52b78c77 | [log] [tgz] |
|---|---|---|
| author | Piotr P. Karwasz <piotr.github@karwasz.org> | Mon Mar 04 13:12:25 2024 +0100 |
| committer | Piotr P. Karwasz <piotr.github@karwasz.org> | Mon Apr 01 12:43:43 2024 +0200 |
| tree | 84c0650637e7c56693c1443ba5acab94e12c6714 | |
| parent | fce7b8f2d97eb292c9079b89f1bf8e04d561e229 [diff] |
Generalize DI usage This commit ensures that: * an `InstanceFactory` is created in the Log4j `Provider`, * the same factory is injected as parameters to all the components of the chain `Log4jContextFactory`, `ContextSelector`, `LoggerContext` (child), `Configuration` (grand-child). * `DI.createInstanceFactory` is called only when strictly necessary.