I am in the process of developing an application (Parser Application) where we have a parser class which is responsible for actually parsing the work.
I want to provide an extension point to all who want to use the API (beside the some generic parsing which I will provide as part of the API). The idea is to create an interface and if any one wants to declare their class as parser class, all they have to do is, to (declare to) implement the interface.
Then, I want to get the list of all the classes with its instance, implementing that parser. After that, I want to call the method of the base interface, which will be implemented by the user.
Aucun commentaire:
Enregistrer un commentaire