nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sami Siren <ssi...@gmail.com>
Subject Re: Possible memory leak?
Date Thu, 13 Jul 2006 11:35:06 GMT
You do not need to implement any special interface any object will do.
--
 Sami Siren

Enrico Triolo wrote:

> I'm trying to fix this bug, so I looked at some source code to see how
> other objects are cached in the configuration.
> I see for example in CommonGrams.java that an Hashtable is put into
> the configuration using the setObject() method. Could I use the same
> method? Can I put arbitrary objects in the configuration or must they
> implement/extend some interface/class (maybe Serializable?).
>
> Enrico
>
> On 6/28/06, Enrico Triolo <enrico.triolo@gmail.com> wrote:
>
>> Sure!
>>
>> On 6/28/06, Jérôme Charron <jerome.charron@gmail.com> wrote:
>> > It seems to be a side effect of NUTCH-169 (remove static NutchConf).
>> > Prior to this, the language identifier was a singleton.
>> > I think we should cache its instance in the conf as we do for many 
>> others
>> > objects
>> > in Nutch.
>> > Enrico, could you please create a JIRA issue.
>> >
>> > Thanks
>> >
>> > Jérôme
>> >
>> > --
>> > http://motrech.free.fr/
>> > http://www.frutch.org/
>> >
>> >
>>
>


Mime
View raw message