🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1608

Re: Making plug in modules (newbe to Java)

#1608
From: John Baker
Date: Mon, 05 Nov 2001 10:00
29 lines
1981 bytes
After that you can then think about even more advanced methods for which you
will need to understand how ClassLoaders work in java. With these you can do
really smart stuff like load modules by scanning a directory for jar files
when your app starts and adding these to a URLClassLoader then looking for
config files in these which tell your module loader which classes to use for
what purpose and loading/init them dynamically. My app does this and so
adding a new module is as simple as dumping a new jar with classes/images
etc in a /ext directory and away it goes the app changes dynamically... But
there is a lot to know before you can pull this off. Look here for some more
clues about this... This guy writes some interesting articles on java...

ClassLoaders and hot deploy...

http://www.smotricz.com/kabutz/Issue022.html

Other articles...

http://www.smotricz.com/kabutz/

Hope this helps...
John Baker

---------------------------
SoftComms Ltd.
110 Bonchurch Road
Brighton BN2 3PH
UK
Tel/Fax: + 44 (0)1273 600 785
http://www.softcomms.com
Technical Details
Message-ID: <3be66054_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!news.mel.connect.com.au!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3be61f09_1@dnews> <3be65d53_1@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-05 02:02:31 PST
From: "John Baker" <jbaker@SoftComms.com>
Newsgroups: borland.public.jbuilder.java.api
References: <3be61f09_1@dnews> <3be65d53_1@dnews>
Subject: Re: Making plug in modules (newbe to Java)
Date: Mon, 5 Nov 2001 10:00:11 -0000
Lines: 33
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.135.248.73
Message-ID: <3be66054_1@dnews>
X-Trace: dnews 1004953684 217.135.248.73 (5 Nov 2001 01:48:04 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!news.mel.connect.com.au!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews