NitroBuzz - 2006-10-24

I'm trying to load the manager using the Class.ForName method. It works if I put:

String myTable = "TblEmpsManager";
(TblEmpsManager)((Class.forName(myTable)).newInstance()).getInstance();

But I have to cast it to make it work. I would like to make it all work based on the string variable myTable. Should I trying using an interface or something to cast into?

Thanks,

Kevin