Plugins

Reply

Join Date: Jul 2004
Posts: 1,749
Reputation: nanosani is an unknown quantity at this point 
Solved Threads: 54
Team Colleague
nanosani's Avatar
nanosani nanosani is offline Offline
Unauthenticated Liar

Plugins

 
0
  #1
Aug 19th, 2004
If I want to add a plugin which I have designed after I have written the software ... how should I do it. Suppose I designed a word pad ... and then I designed a spell checker ... how should I add the spell checker to my word pad to get it working
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 153
Reputation: cosi is an unknown quantity at this point 
Solved Threads: 1
cosi's Avatar
cosi cosi is offline Offline
Junior Poster

Re: Plugins

 
0
  #2
Aug 20th, 2004
Hey sani,

Have you used eclipse before? I wonder if you could leverage some of their plugin loading code. That would be awesome.

You could write your own plugin loading code rather easily. Have a plugin directory that your app will scan for plugins. Plugins can essentially be packaged java code. You can place plugins in a jar; they're easy to distribute.

Each plugin could have a very defined structure. For example if you wanted just a dumb simple single action for every plugin and have that single action listed in some plugin Menu in your wordpad app, then have every plugin define doAction(...) getActionName()... and so on. Then you can use reflection and the ClassLoader to load the classes dynamically at runtime.

You can ask me for more details if you don't find it easy to do... I do think that something like eclipse would be best if you can figure out how to get it working with your code.


Ed

Originally Posted by nanosani
If I want to add a plugin which I have designed after I have written the software ... how should I do it. Suppose I designed a word pad ... and then I designed a spell checker ... how should I add the spell checker to my word pad to get it working
In a world without walls or fences,
What use are Windows and Gates.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 1,749
Reputation: nanosani is an unknown quantity at this point 
Solved Threads: 54
Team Colleague
nanosani's Avatar
nanosani nanosani is offline Offline
Unauthenticated Liar

Re: Plugins

 
0
  #3
Aug 20th, 2004
Thanks for the great ideas ... I have started implementing like that ... I'll tell you if I get some difficulties.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 1
Reputation: sethgeco is an unknown quantity at this point 
Solved Threads: 0
sethgeco sethgeco is offline Offline
Newbie Poster

Re: Plugins

 
0
  #4
Nov 20th, 2008
Originally Posted by cosi View Post
Hey sani,

Have you used eclipse before? I wonder if you could leverage some of their plugin loading code. That would be awesome.

You could write your own plugin loading code rather easily. Have a plugin directory that your app will scan for plugins. Plugins can essentially be packaged java code. You can place plugins in a jar; they're easy to distribute.

Each plugin could have a very defined structure. For example if you wanted just a dumb simple single action for every plugin and have that single action listed in some plugin Menu in your wordpad app, then have every plugin define doAction(...) getActionName()... and so on. Then you can use reflection and the ClassLoader to load the classes dynamically at runtime.

You can ask me for more details if you don't find it easy to do... I do think that something like eclipse would be best if you can figure out how to get it working with your code.


Ed
I am building a media player and i wish to add mp3 plugins to allow it to play more types of file but i don't know how to set my application up to except plugins.


Dennis
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 706
Reputation: stultuske is a jewel in the rough stultuske is a jewel in the rough stultuske is a jewel in the rough 
Solved Threads: 84
stultuske's Avatar
stultuske stultuske is offline Offline
Master Poster

Re: Plugins

 
0
  #5
Nov 21st, 2008
Originally Posted by sethgeco View Post
I am building a media player and i wish to add mp3 plugins to allow it to play more types of file but i don't know how to set my application up to except plugins.


Dennis
after 4 years, nobody is still reading this thread.
but if you want to play .mp3 files, either check out the JMF or JavaZoom
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC