I\'m just getting started with the Delphi Spring Framework and was wondering whether the current version of the DI container somehow allows delegating the construction to a fact
Doesn't look like the architecture of the spring framework currently supports it but its certainly feasible. It has been suggested in the spring4d support group and there is interest in the idea.
There is a generic TFactory
class in Spring.DesignPatterns
that may be of use in wrapping CreateComObject/COCreateInstance
.