this was a path I pursued in 2009, when I did instrumentation in
memory. The problem was that it worked ... in most cases.
Unfortunately in some wierd cases, a container (Glassfish at the time)
was loading some classes before loading the web app, basically
preventing from instrumenting an already loaded class. I banged my head
against monitor for two months, then switched to static
instrumentation, and got 100% reliability.
Frankly, I do not view instrumentation as evel, to me it is more a
minor annpyance. I configured my IDE to automaticaly run
instrumentation with Ant before each test, which happens near instant.
Think of any other technology that requires a post-compile step , such
as AspecJ. While I'd like to make it possible to haev instrumentation
in memory, nit sure that the gigangic effort it requires is worth it.
Others stumble on it in teh beginning, but quickly get used to it, the
payoff is good quality consice APIs
Besides, if you practice real TDD, you will not have to recompile your
models on the fly. I would be interested to learn how you use
ActiveJDBC, maybe there are better ways there,\
thanks
Igor