Thanks for taking the time to read my story. It’s much appreciated :)
Sure, you can use JNDI in Java. This code is C# though. But, the approach I’m showing can possibly be recreated in a lot of other languages.
Also, I still see many factory implementations using switch and if-else.