Leszek Gawron wrote:

-----Original Message-----
From: Christopher Oliver [mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 5:47 PM
To: [EMAIL PROTECTED]
Subject: Re: Introducing IOC for Java classes created in flowscript

See Interpreter.java in the example package of
ftp://ftp.primaryinterface.com/pub/javacAPI/javacAPI.zip. It provides a
CompilingClassLoader that implements findClass() by using the Eclipse
java compiler to compile source files. By combining this with Rhino's
ability to dynamically use custom classloaders (see
http://www.mozilla.org/rhino/rhino15R4.html "Scripting classes from any
class loader") you should be able to create a Flowscript development
environment that doesn't require the explicit use of javac.




I am a little behind with mailing list..
ftp://ftp.primaryinterface.com/pub/javacAPI/javacAPI.zip - this address is no
longer valid (host not found?). Where can I find this file?


You no longer need it, as it is in CVS already - and therefore in 2.1.4 release. To use the compiling classloader, edit the cocoon.xconf, find //flow-interpreters/[EMAIL PROTECTED]'javascript']. Add in a node <classpath>xxxx</classpath> that specifies the path to your java source code. Restart your servlet container once, and from then on, you will not need to restart your container, classes will be recompiled on demand. Well cool!

I take it that is what you are after.

Regards, Upayavira




Reply via email to