Reading .class files, dynamically
Posted on 2006-11-12
I'm trying to write a program that could read plugins, basically the program itself is just a GUI and all the work is done by other class files, the thing is I want the program to read every .class in a folder(or the same folder as the root, doesn't matter) dynamically, like for example I write a new class file, all I have to put it in there and the program will recognize it and use its methods.(to make things easier, all the method names are similar in every class file)
To make it more clear, I'll give you an overview of the program I'm writing, it basically has a combobox that has a list of all the class files in the folder, when I pick one of them it should use a method inside that certain class file that returns a panel which has some sort of an interface where I could do some operations, I'm going to keep adding new kinds of operations with time(which have different input, therefore different interface), but I don't want to edit the main file everytime I do so.
Thanks for your help in advance