spring-framework/org.springframework.context
Chris Beams b72cca5403 Fix memory leak in serializable bean factory management (SPR-7502)
GenericApplicationContext and AbstractRefreshableApplicationContext
implementations now call DefaultListableBeanFactory.setSerializationId()
only upon successful refresh() instead of on instantiation of the
context, as was previously the case with GAC.

DLBF.setSerializationId() adds the beanFactory to the *static*
DLBF.serializableFactories map, and while calling close() on the
application context removes entries from that map, it does so only if
the context is currently active (i.e. refresh() has been called).

Also, cancelRefresh() has been overridden in GAC just as it has been
in ARAC to accomodate the possibility of a BeansException being thrown.
In this case, the beanFactory serializationId will be nulled out and
the beanFactory removed from the serializableFactories map.

The SerializableBeanFactoryMemoryLeakTests test case provides full
coverage of these scenarios.
2010-08-27 10:53:20 +00:00
..
.settings Additional tests rounding out @ImportXml coverage 2009-11-07 03:53:58 +00:00
src Fix memory leak in serializable bean factory management (SPR-7502) 2010-08-27 10:53:20 +00:00
.classpath Fix dependency issues in .context pom and .classpath 2010-07-21 12:04:06 +00:00
.project SPR-6158: Initial implementation and tests for @ImportXml 2009-11-07 00:32:40 +00:00
.springBeans attempted to repro SPR-7318 to no avail 2010-06-28 22:57:26 +00:00
build.xml + upgrade to AspectJ 1.6.8 2010-02-04 11:46:21 +00:00
context.iml added "validationMessageSource" property to LocalValidatorFactoryBean, for Spring-based messages (SPR-7307) 2010-06-28 22:08:31 +00:00
ivy.xml Publishing license and notice files 2010-08-23 13:17:31 +00:00
pom.xml Prepping for 3.0.5 2010-08-19 11:04:04 +00:00
template.mf added "validationMessageSource" property to LocalValidatorFactoryBean, for Spring-based messages (SPR-7307) 2010-06-28 22:08:31 +00:00