|
From: bruce <br...@mc...> - 2003-03-27 16:01:27
|
You got it exactly Dejan.
Actually all it does is:
configs.clear();
Quite simple really...
On Thursday 27 March 2003 10:55 am, Dejan Krsmanovic wrote:
> It seems to me that this method should be implemented in ConfigService
> class (no need for implementing it in subclasses). This is
> getConfigMethod() public IConfig getConfig(String name) {
>
> //System.out.println("Getting config: "+name);
>
> IConfig config = (IConfig) configs.get(name);
>
> if (config == null) {
>
> //System.out.println("Config: "+name+" not found, loading.");
>
> config = configService.getConfig(name);
>
> configs.put(name, config);
>
> }
>
> return config;
>
> }
>
> All you need is to set configs Map to new, empty Map. Something like
> public void reset() {
>
> configs = Collections.synchronizedMap(new LRUMap(lruNum));
>
> }
>
> Am I right, Bruce?
>
> Dejan
> ----- Original Message -----
> From: <ek...@ba...>
> To: "Babeldoc Developers List" <bab...@li...>
> Sent: Thursday, March 27, 2003 4:43 PM
> Subject: Re: [Babeldoc-devel] A few more questions
>
> > <<
> > Maybe it is better idea to have such method in IConfigService too. Why
> > not
> > have option to reload configuration from properties files too?
> >
> >
> > Sounds like a reasonable request. Initially, I will implement it in
> > SQLConfigService to get my solution working and then I will look into
> > the effort (which I imagine is quite small) to implement it in the other
> > classes that implement IConfigService.
> >
> > ... unless someone objects ...
> >
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by:
> > The Definitive IT and Networking Event. Be There!
> > NetWorld+Interop Las Vegas 2003 -- Register today!
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> > _______________________________________________
> > Babeldoc-devel mailing list
> > Bab...@li...
> > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
>
> -------------------------------------------------------
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> _______________________________________________
> Babeldoc-devel mailing list
> Bab...@li...
> https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
|