This is correct you can dynamically load already compiled code by writing your own class loader but can not dynamically write and compile java code easily. There are Java based scripting languages like Jython and Groovy that will dynamically compile and allows you to use standard Java classes,
Thanks Marc Aylesworth C3I Associates AFRL/IFSE Joint Battlespace Infosphere Team 525 Brooks Rd Rome, NY 13441-4505 Tel:315.330.2422 Fax:315.330.7009 Email: [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gregory Woodhouse Sent: Tuesday, December 06, 2005 6:48 PM To: hardhats-members@lists.sourceforge.net Subject: Re: [Hardhats-members] Linking to VistA On Dec 6, 2005, at 2:37 PM, K.S. Bhaskar wrote: > > [KSB] It is more involved in Java, but there is a way to execute > dynamic > code - I think it's something like taking a serialized class and > loading > it. Caveat: I am not, and never was, a Java programmer. Well, let's just say that I've programmed in Java. :-) In fact, Java is considerably more restrictive than MUMPS in this regard. What it has is a class called Class, and Class has a static (class) method named forName that is a kind of a factory method, allowing you to take the name of a file containing a class definition and create an instance of that class at runtime. This is useful, for example, in loading plugins, but is really all very static. You can't, for example, dynamically modify a class definition to override a method. At best, you can add these dynamically loaded (but statically compiled) classes to composites to create new kinds of "things", but this is a kind of ad hoc abstraction that is separate from the class hierarchy. === Gregory Woodhouse [EMAIL PROTECTED] "Nothing is as powerful than an idea whose time has come." -- Victor Hugo ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members