Create a generic class that will create and populate any class in the app
Hi All,
I am new to this, and I was wondering if some one could help me out. If my question is too obvious then please let me know and still guide me to a resource where I can get help.Here is what I want.
In my application at run time, I read a file, this file will determine the values for the properties of a class.
I read this file, get the class name and then read all the values that I need to set in that class. I am able to get an instance of any specifc class using Class.forName("package.ClassName");
What I am getting at is I have a generic class, to which I pass the String class name and the values[], and in this generic class, it will create an instance and populate fields using setters.
I want to do this for many classes not writing a single loading class for each class.
If I do not make any sense, even then please let me know so that I could try explaining further..:-)
A help is greatly appreciated

