Steve Byrne wrote:
> Apache's mod_jserv does this, and the code is small enough to be easily
> comprehensible.
>
I just recently looked over this code, and it is interesting, but I don't think
it quite does what's described:
As far as I understand it:
- They have a ClassLoader implementation that can report if a *directly* loaded
class file has been changed.
- Before running a servlet, jserv asks the class loader if there's been a
change to any of its classes.
- If yes, it throws away the current class loader, and instantiates a brand new
one. By default, this causes instances belonging to the old loader to also be
trashed.
AFAIK, this only detects changes in directly loaded classes, but not
transitively loaded ones.
So, this is kind of interesting... I was wondering what it'd be like to combine
this with an IDE to be able to better adapt to changes. Not sure how
applicable it is.
- Robb
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]