OO pluggable module developing solution
i am developing an application which implements different kinds of checks on data. i have implemented each check as a different java file(as Class). Now in future if any user/developer of the application wants to add a check, can make a new java file and add to the specified checks package(org.project.checks). In addition to adding the new check class, he needs to add the name of the class in a text file.
Now the problem begins:
i need to read the text file which has the names of each check file as:
--
check1
check2
check3
.
.
checkN
--
and then call the constructors of each check file to implement the check at the runtime, as :
new check1(argument);
new check2(argument);
..
..
new checkN(argument);
i can read the class names from the text file , but i am not able to call/compile them at the runtime to use the functions to implement checks.
this was my way of implementing a OO Pluggable module interface. If any one can suggest a better way to assist the pluggable application or can provide the solution to the above problem..i shall be greatful.
thank you.

