🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.help
Article #76

Re: Dynamically load and instantiate unknown classes at runtime.

#76
From: Iain Lowe
Date: Mon, 22 Mar 1999 00:00
27 lines
1670 bytes

Brent Peckover wrote:
> 
> I'm trying to create an application which will allow itself to be
> extended without requiring the original code.  Information comes into a
> control thread, and is then synchronously passed to a list of classes
> which are not know at design time.
> 
> How do I tell Java to Load a class (say I get the required class name
> out of a text file at runtime), create an instance of the class, and
> then call the new instance's methods (which may also be listed in the
> file)?
> 
> Anyone have any suggestions?

JavaWorld's Bill Venners has looked at both reflection (runtime class
info) _and_ dynamic extension in columns. You can check them out here :

Design with runtime class information -
http://www.javaworld.com/javaworld/jw-02-1999/jw-02-techniques.html
Design with dynamic extension -
http://www.javaworld.com/javaworld/jw-01-1999/jw-01-techniques.html

Hope this helps =)

Iain Lowe
Technical Details
Message-ID: <36F6942F.8DB9807C@tmdesigncom.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36F3DDDE.2FF6DBD4@archiveware.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113ae9,59c3d3f2dc30d0e6
X-Google-Attributes: gid113ae9,public
X-Google-Thread: f74b3,59c3d3f2dc30d0e6
X-Google-Attributes: gidf74b3,public
From: Iain Lowe <ilowe@tmdesigncom.com>
Subject: Re: Dynamically load and instantiate unknown classes at runtime.
Date: 1999/03/22
Message-ID: <36F6942F.8DB9807C@tmdesigncom.com>
X-Deja-AN: 457662530
Content-Transfer-Encoding: 7bit
References: <36F3DDDE.2FF6DBD4@archiveware.net>
X-Accept-Language: en,fr,es
Content-Type: text/plain; charset=us-ascii
Organization: TM Design Communications
Mime-Version: 1.0
Reply-To: ilowe@cryogen.com
Newsgroups: comp.lang.java.help,borland.public.jbuilder.java.language