ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm interested in creating a program in which I can later extend the functionality of the program with modules or plugins, without having to change the code to the original program. Ideally I'd like to create a main program, and upon startup let it check for plugins/or modules, and incorporate that functionality too. Does anyone know of any resources for this kind of paradigm. I'll probably be writing the main program in Java but I'm more interested in seeing how this sort of thing is implemented, so it doesn't matter which language. Thanks for any help.
Well, for platform specific you could look into libdl (dlopen(), dlclose(), dlsym()) for Linux, and getProcAddress for Windows. Just google them. If you don't want it platform specific than I suggest a scripting language, such as Python: www.python.org
Thanks for your reply. I don't think that's what I'm looking for though. I'm looking to build a base program, and then extend the functionality of that program by incorporating modules without ever having to modify the base program. I intended to implement this in probably Java, and didn't want to worry about platform specifics. If anyone has any ideas or links of resources for this kind of paradigm, please send them along. Thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.