posted 12 years ago
Hi. I have some code that dynamically creates object instances according to the name of the class that's passed in (it creates different handler objects based on the type of message that's received).
Those handler objects (myObj) could use dependency injection to choose between two different Database types that we use. Is there a way to use DI for those handler objects, if they're created on the fly like this?
Thanks for the help!