Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Plugin discovery and usage

 
ashley pursglove
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Im looking at creating a system that will implement a modular approach and as such modules will need to be dynamically loaded at runtime.

I've read through this post Code ranch post and think I understand it reasonably well.

2 Questions really.

First off, is this a good example of how to create a plugin architecture?

Secondly, this framework will be supporting a commercial product. At the minute the entire program is contained in one .exe which has been compiled with excelsior jet. My concern is that If I chose to use a solution like the one listed in the link, will I be able to secure the jar files in any way so that it is not easy to access the code within them?

Kind Regards

Ash
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This article I wrote some time ago may give you some ideas.

For a higher-end (more complicated and more flexible) solution, check out OSGi.
 
ashley pursglove
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf and thanks very much for the response.

I have had a quick look into the article.

I'll have a proper read through now. If I have any questions ill post here and hopefully you will be able to answer them.

Thanks for the info on OSGi.

Do you know of any good tutorials.

All the stuff I've found so far seems to be geared towards using eclipse. A netbeans tutorial would be great.

Kind Regards

Ash
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15490
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

If this is going to be a desktop application, then you could do this using a rich client platform, for example the Eclipse RCP or NetBeans RCP. Both those already have a plugin architecture and automatic update functionality built-in.

Inventing and implementing a plugin architecture with automatic updates yourself is not going to be a simple task, it will take quite some time to design and implement something like that.

If there is really a strict requirement that it must be compiled into an .exe with Excelsior JET then that is going to make things more complicated. Neither Eclipse nor NetBeans use that, although they both have small .exe files to launch them.

Eclipse has been based on OSGi for a long time; NetBeans has its own module system, but since version 6.9 also supports OSGi.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic