Peter,
Well, so much for the patch I was just about to post. :-) Thanks.
One thing, though. I suggested in mine that in AvalonMailStore.select,
NNTPUtil.createInstance, MailetLoader.getMailet, and MatchLoader.getMatcher
we could cache the classloader for reuse. Do you want to do that?
--- Noel
-----Original Message-----
From: Peter M. Goldstein [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 19:22
To: 'James Developers List'
Subject: RE: Class loading
> >AvalonMailStore.java: reply = (MailRepository)
> >Class.forName(repClass).newInstance();
Got this one.
> >AvalonUsersStore.java: UsersRepository rep = (UsersRepository)
> >Class.forName(repClass).newInstance();
Got this one.
> >JdbcDataSource.java: Class.forName(jdbcDriver, true,
> >Thread.currentThread().getContextClassLoader());
In accord with the preexisting source line, changing to
Thread.currentThread().getContextClassLoader().loadClass(jdbcDriver)
> >NNTPUtil.java: Object obj = Class.forName(clsName).newInstance();
Got this one.
> >MailetLoader.java: Mailet mailet = (Mailet)
> >Class.forName(className).newInstance();
> >MatchLoader.java: Matcher matcher = (Matcher)
> >Class.forName(className).newInstance();
Got this one.
Will check in shortly.
--Peter
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>