spring-framework/org.springframework.integra...
Chris Beams 5c27a04210 Automatically close SessionFactory objects
SessionFactory objects created by
SessionFactoryBuilderSupport#buildSessionFactory are now DisposableBean
proxies that call SessionFactory#close and release any threadlocal
DataSource object.

This is the same behavior that has always occurred during LSFBean and
ASFBean destruction lifecycles (and still does). This destruction logic
has now been factored out into
SessionFactoryBuilderSupport#closeHibernateSessionFactory such that all
SFB types can reuse it easily.

Note that LSFBean and ASFBean are subclasses, respectively, of SFBuilder
and ASFBuilder and they each must disable the DisposableBean proxying in
order to avoid duplicate attempts at closing the SessionFactory. See
the implementations of wrapSessionFactoryIfNeccesary() for details.

Issue: SPR-8114
2011-04-26 10:15:30 +00:00
..
.settings Fix obscure STS error 2011-03-31 14:28:08 +00:00
src Automatically close SessionFactory objects 2011-04-26 10:15:30 +00:00
.classpath Introduce (Annotation)SessionFactoryBuilder types 2011-03-31 12:29:12 +00:00
.project Merge 3.1.0 development branch into trunk 2010-10-25 19:48:20 +00:00
.springBeans Fix obscure STS error 2011-03-31 14:28:08 +00:00
build.xml + upgrade to AspectJ 1.6.8 2010-02-04 11:46:21 +00:00
integration-tests.iml Introduce (Annotation)SessionFactoryBuilder types 2011-03-31 12:29:12 +00:00
ivy.xml Introduce (Annotation)SessionFactoryBuilder types 2011-03-31 12:29:12 +00:00
pom.xml [SPR-7850][SPR-7851] Upgraded to JUnit 4.8.1 and TestNG 5.12.1; added changelog entries for 3.1.0.M1. 2010-12-30 08:00:58 +00:00
template.mf renamed .testsuite -> .integration-tests 2008-12-20 09:36:46 +00:00