|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.search.event.ContextHolder
public class ContextHolder
Holds already built SearchFactory per Hibernate Configuration object concurrent threads do not share this information This code uses ThreadLocal and despite the weak hashMap use, some users claim to see memory leaks (in Tomcat as usual). So if that can be avoided, do not use this class. There is no clean hook to always remove the SearchFactory from the map.
Constructor Summary | |
---|---|
ContextHolder()
|
Method Summary | |
---|---|
static SearchFactoryImpl |
getOrBuildSearchFactory(org.hibernate.cfg.Configuration cfg)
|
static void |
removeSearchFactoryFromCache(SearchFactoryImplementor factory)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextHolder()
Method Detail |
---|
public static SearchFactoryImpl getOrBuildSearchFactory(org.hibernate.cfg.Configuration cfg)
public static void removeSearchFactoryFromCache(SearchFactoryImplementor factory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |