mistral said:
Is there a way to create an object instance if I only now the (string) name
of it's class?
If it has a constructor that doesn't need arguments, then you can simply
do:
Class.forName("com.mypack.MyClass").newInstance();
If you wish to use a constructor that does require arguments, then
you'll have to call getConstructor on the Class instance, and then call
Constructor's newInstance method.
--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation