linuxunil
September 18th, 2009, 02:46 AM
I'm building an application to backup, search, etc notes I take in school. I'm wanting to make it pluggable so extending it will be easier for me and others. But I am having a hard time finding information on building pluggable applications. The few examples I have found are things like IRC bots that just pass events.
My idea for using pluggins is mainly things like changing how a function works. Since it's going to start off as a command-line app, if I do something like
foo add bar I would like for a plugin to be able to add or replace the functionality of add, such as instead of saving to a flat file save to a database, or online storage.
[In advance]
Any suggestions on approaches to making an application pluggable are very appriciated
My idea for using pluggins is mainly things like changing how a function works. Since it's going to start off as a command-line app, if I do something like
foo add bar I would like for a plugin to be able to add or replace the functionality of add, such as instead of saving to a flat file save to a database, or online storage.
[In advance]
Any suggestions on approaches to making an application pluggable are very appriciated