• Post Reply Bookmark Topic Watch Topic
  • New Topic

how too add runtime pluggins?  RSS feed

 
Angelica Soto
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi guys,

We have been building a Blog Writer desktop application using java and swing.

You can take a look at our 1.0 version using this link -> http://www.psiqueware.com/girasol/launch.jnlp or http://www.psiqueware.com/pw/scope.do?doc=downloads_en

We have reach the stage where we want add plugin functionality.

My concerns are about it are the following:

About Loading and Downloading

  • Should we just download them using https from our site to our temporal directory and create a custom classloader .
  • How do you recommend us to download and load the pluggins?
  • Do you know any other mecanism that we can benefit from?

Security

  • Is it posible to isolate attached jars? How? I mean if two pluggins contain 2 separated versions of spring it could be problematic.
  • Is it posible to partially isolate downloaded pluggins? It would be great have comunication between a limited number of clases.
  • Our application uses jnlp, can we reuse something in that area?

Reusability

  • Does anybody knows about an existing library for us to use?


I have no experience with custom classloaders therefore I think I can benefit from every one of your comments,

thank you
-- Angel


PS: I leave you with some screenshots of our project.





 
Dawn Charangat
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For automatic downloading, you can use the java webstart technology.

And for having separate versions of the same component in jars, and still making things to work perfectly - Welcome to the world of OSGi !!!
 
Angelica Soto
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to use OSGi for that?

I saw a demo of knopplerfish... can this be used without the interface? We would like to keep ours :P

Do you happen to have an URL to a good tutorial?

A custom classloader won't do?
 
Dawn Charangat
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure you can go for OSGi... there are a lot of implementations available.... Equinox, Knopplerfish, Felix.... and just try google to find a tutorial suitable for your requirement.
OSGi is all about classloading mechanisms at runtime, and pluggable entities. But the look of your situation I suppose it can come handy for you.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PsiqueWare PublicRelations,

Please read your private messages regarding an important announcement.

Also, please refrain from posting links to your own software. We have our Blatant Advertising forum for that.

Thank you,

Rob
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!