My understanding is that IoC is going to replace the lookup function, such as those provided by a factory. However, if the decision as what subclasses/impl classes to use is not known until run time, how can IoC solve it? I believe the information has to be avaliable by compile time in order to put the dependency in an XML file. I still think a factory is more powerful than an IoC container since decision can be made at run time depending on some parameters. Please advise. Thanks,
Announcement Announcement Module
No announcement yet.
How to deal with Runtime configuration with IoC? Page Title Module
Move Remove Collapse