Article View: borland.public.jbuilder.java.api
Article #1619Re: Making plug in modules
From: John Baker
Date: Wed, 07 Nov 2001 15:19
Date: Wed, 07 Nov 2001 15:19
21 lines
1796 bytes
1796 bytes
I have just updated the example Jbuilder4 project to include a demo gui app that loads plugin jars from the app plugin directory and show them attached dynamically. Uzip into a fresh directory and open the project. It should work by hitting run. http://www.softcomms.com/java/plugin.zip This illustrates a flexible way to make an application modular, use of custom classloaders, multiple resource usage etc. There is only one plugin - the hello plugin. This is enough to get the idea though. Any problems just mail me. To add a new plugin for practice look at the way the HelloInitializer works and write a similar class. Also look at the properties of the Hello jar which is how a plugin should be packaged. Hope this helps those who have been interested in modularity, John ---------------------------- SoftComms Ltd. Tel/Fax: + 44 (0)1273 600 785 http://www.softcomms.com
Technical Details
Message-ID:
<3be94e3b_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!grolier!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3be61f09_1@dnews> <3be81ef4_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,7c97ac1429a802dc X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-11-07 07:11:21 PST From: "John Baker" <jbaker@SoftComms.com> Newsgroups: borland.public.jbuilder.java.api References: <3be61f09_1@dnews> <3be81ef4_2@dnews> Subject: Re: Making plug in modules Date: Wed, 7 Nov 2001 15:19:56 -0000 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: 217.134.198.85 Message-ID: <3be94e3b_1@dnews> X-Trace: dnews 1005145659 217.134.198.85 (7 Nov 2001 07:07:39 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!grolier!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews