hi, im back. this is a good poit. Why keep hacking away at code that is no good? it creates some problems: 1 there will be more motivation (personal interest) around to keep this code alive 2 there will be more bad code to sort out 3 there will be less develope time available for the creation of good code.
ernst > -----Oorspronkelijk bericht----- > Van: Michiel Meeuwissen [mailto:[EMAIL PROTECTED] > Verzonden: vrijdag 16 april 2004 12:49 > Aan: [EMAIL PROTECTED] > Onderwerp: Re: HACK: Reloadable module > > > Rob Vermeulen <[EMAIL PROTECTED]> wrote: > > How would you implement a Module that also should be able > to shutdown(), > > or implement unload(), load() etc. ? > > shutdown and onload are allready in Module. No idea if they > sometimes do > anything usefull. > > > load, and unload were used in James for dynamically loading and > > unloading the classfiles. So you can develop a module > without restarting > > your web application. As far as i know this was also the > case for Servlets. > > Since loading/unloading seams very connected to 'reloadable' > mouldes I would > perhaps move it to there. > > > But the point is, that _currently_ Modules are not reloadable > and never are > reloaded. So, it is logical that if you implement some of this > functionality that you put it in an extension. I did not put > it in my own > module-implementation (crontabmodule) because it is obviously > something more > generic. Having done that I offer it as a hack, because it > might be useful > for other people too. > > I think it is not a good that such an improvement is jugded > undesirable > becasue the original Module is no good in the first place. > > If the problem is that Module itself is no good, then that is another > problem, which is unrelated to this proposal. > > > I could also have proposed a complete rewrite of Module and all its > implemetnations but that would certainly indeed become a > project rather then > a hack, and would be much more involving and time-consuming. > > > But there are as yet no concrete plans for rewriting Module, > so for the time > being I think my proposal is good. When we rewrite Module > itself, next week, > or after a 10 years, my ideas of ReloadableModule could perhaps be > incorporated in Module itself. > > Note that my proposal would also be compatible with 1.7. You > can easily take > these class(es) and make your own 1.7 reloadable module. > > > Michiel > > > > -- > Michiel Meeuwissen | > Mediapark C101 Hilversum | > +31 (0)35 6772979 | I hate computers > nl_NL eo_XX en_US | > mihxil' | > [] () | >
