Assume, I load the class by the ClassLoader at the runtime:
Class<MyInterface> clazz = (Class<MyInterface>)getClass().getClassLoader().loadClass("ImplementerOfMyInterface");
The new instance I can create then by
MyInterface myInt = clazz.newInstance();
But when I need to get the instance of the singleton by its name that implements the MyInterface instead of creating the new one, what should be done?