[Bioperl-l] pipeline

Thomas Down td2@sanger.ac.uk
Tue, 12 Mar 2002 16:19:19 +0000


On Tue, Mar 12, 2002 at 07:59:39AM -0800, David Block wrote:
> 
> I basically abuse perl to do that - not sure it could even be done that 
> way in Java.

Hmmm, you can certainly do on-the-fly code generation in Java.
Just write some Java bytecode into an array, then classload it
and voila :-).  [I've also seen people generating Java code itself
on the fly, then running javac to compile it -- but that's getting
a little bit hairy, and seems unnecessarily convoluted when you've
got a nice, high-ish level, cross-platform bytecode].

The only big difference is that, because method calls
are checked at compile-time, you'll have to, at a minimum,
write (or auto-generate) static interface definitions for
your persistant objects.  The implementations can still be
filled in at run time, though. 

...which starts to sound a lot like EJB 2.0 container-managed
persistance.  Ho hum... ;-)

    Thomas.