Re: Creating beans dynamically from byte code in a byte[] withClassLoader.defineClass - how to do it right?

2002-04-23 Thread Craig R. McClanahan
On Tue, 23 Apr 2002, Struts Newsgroup wrote: Date: Tue, 23 Apr 2002 01:55:01 -0700 From: Struts Newsgroup [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Creating beans dynamically from byte code in a byte[] with

RE: Creating beans dynamically from byte code in a byte[]withClassLoader.defineClass - how to do it right?

2002-04-16 Thread Thorbjørn Ravn Andersen (Scandiatransplant)
On Mon, 15 Apr 2002, Niall Pemberton wrote: This is exactly what DynaBeans were invented for. I have spent quite some time looking for such an automatic bean creation facility, and apparently it is something which is quite unique to the Struts project in that there is a working solution.

Creating beans dynamically from byte code in a byte[] withClassLoader.defineClass - how to do it right?

2002-04-15 Thread Thorbjørn Ravn Andersen (Scandiatransplant)
I have spent some time lately figuring out how I can generate beans on-the-fly with fields completely specified at run-time, since this would be an enourmeous help when working with JDBC and Struts in an informal matter (which is why I ask here :-) I have used Apache Jakarta BCEL to construct

RE: Creating beans dynamically from byte code in a byte[] withClassLoader.defineClass - how to do it right?

2002-04-15 Thread Niall Pemberton
This is exactly what DynaBeans were invented for. Using BCEL to generate classes on the fly is impressive, but wouldn't it be simpler to just use the DynaBeans, which I believe are in 1.1? Niall -Original Message- From: Thorbjørn Ravn Andersen (Scandiatransplant) [mailto:[EMAIL