[hibernate-dev] Re: Search initialization: remove WeakHashMap?

Emmanuel Bernard emmanuel at hibernate.org
Sat Jul 5 11:18:59 EDT 2008


Nope this is unrelated. You could have n instances of the same event  
listener class and this code protect from this.

--
Emmanuel Bernard
http://in.relation.to/Bloggers/Emmanuel | http://blog.emmanuelbernard.com 
  | http://twitter.com/emmanuelbernard
Hibernate Search in Action (http://is.gd/Dl1)

On  Jul 4, 2008, at 21:17, Sanne Grinovero wrote:

> Hello,
> does the resolution of HSEARCH-209 imply we can get rid of the
>
> private static final ThreadLocal<WeakHashMap<Configuration,
> SearchFactoryImpl>> contexts = ...
>
> in SearchFactoryImpl?
>
> I never fully understood the need of that, I thought because we could
> have several Search listeners
> registered, but if we could delete
> FullTextIndexCollectionEventListener this shouldn't be an issue
> anymore.
>
> Sanne




More information about the hibernate-dev mailing list