I got an assignment in my university. I need to write a single web page, that lists all the classes in the particular web app. Selecting a class, the page should list all the functions in it. Selecting a function, the user should be able to feed the parameters and displayed the returned value as a string.
Now this is the problem statement, hope it is unambiguous. Can some one tell me how should I go about it? Like where do I start, what are the things that should be considered and so on. Thanks in advance.
--
Ramprakash R
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2329
posted
1
That's quite an ambitious project. In order to accomplish what you described you would have to dig into the inner workings of the Java ClassLoader architecture and the Reflection API. That seems a bit out of the ordinary for a university project.
There are also quite likely methods that take parameters that you can't easily create via a web page - what should happen with those?
By the way, Java doesn't have functions - it has methods.
Ramprakash Ramamoorthy
Greenhorn
Joined: Jan 16, 2012
Posts: 3
posted
0
Thanks Tim. Will have to dig on it, will keep it posted here.
Oh yeah methods. I am still sticking to PHP, sorry for that :)
subject: Writing a web app to test drive each method