From: Keats K. <ke...@xa...> - 2005-05-20 22:07:42
|
It needs the servletContext *and* the classloader for the servletContext. WM can get both from the Servlet, which is why it was done that way. I don't think there is a guaranteed way to get the servlet classloader from the servletContext. Let's not break all the old WM servlet code. However if you want to be explicitly pass in both arguments, I don't see any problem with that. Keats Endre Stølsvik wrote: >The WM constructor taking a servlet, doesn't that really just need the >servletContext or what it is? > >What about making a constructor that takes the argument that is really >needed, instead of having a constructor that takes an argument which is >instantly asked for another object? Pretty please before 2.0. > >Endre > > > > |