Go to file
Chris Beams 2afeb08e3c Fix @Autowired+@PostConstruct+@Configuration issue
A subtle issue existed with the way we relied on isCurrentlyInCreation
to determine whether a @Bean method is being called by the container
or by user code.  This worked in most cases, but in the particular
scenario laid out by SPR-8080, this approach was no longer sufficient.

This change introduces a ThreadLocal that contains the factory method
currently being invoked by the container, such that enhanced @Bean
methods can check against it to see if they are being called by the
container or not.  If so, that is the cue that the user-defined @Bean
method implementation should be invoked in order to actually create
the bean for the first time.  If not, then the cached instance of
the already-created bean should be looked up and returned.

See ConfigurationClassPostConstructAndAutowiringTests for
reproduction cases and more detail.

Issue: SPR-8080
2011-05-12 12:28:13 +00:00
build-spring-framework Remove "Feature" support introduced in 3.1 M1 2011-05-06 19:03:52 +00:00
org.springframework.aop Introduce @EnableTransactionManagement 2011-05-06 19:10:25 +00:00
org.springframework.asm Merge 3.1.0 development branch into trunk 2010-10-25 19:48:20 +00:00
org.springframework.aspects Introduce @EnableTransactionManagement 2011-05-06 19:10:25 +00:00
org.springframework.beans Fix @Autowired+@PostConstruct+@Configuration issue 2011-05-12 12:28:13 +00:00
org.springframework.context Fix @Autowired+@PostConstruct+@Configuration issue 2011-05-12 12:28:13 +00:00
org.springframework.context.support moved cache abstraction from context.support to context 2011-02-07 17:41:25 +00:00
org.springframework.core polishing 2011-05-11 20:09:08 +00:00
org.springframework.expression SFW-8228 2011-05-11 23:41:30 +00:00
org.springframework.instrument Include license.txt and notice.txt in module JARs 2011-02-09 06:56:40 +00:00
org.springframework.instrument.tomcat Include license.txt and notice.txt in module JARs 2011-02-09 06:56:40 +00:00
org.springframework.integration-tests Add MockEnvironment to .integration-tests 2011-05-11 07:51:32 +00:00
org.springframework.jdbc SPR-6922 deprecated SimpleJdbcTemplate/SimpleJdbcOperations/SimpleJdbcDaoSupport in favor of JdbcTemplate/NamedParameterJdbcTemplate and related interfaces support classes 2011-04-14 18:44:40 +00:00
org.springframework.jms Include license.txt and notice.txt in module JARs 2011-02-09 06:56:40 +00:00
org.springframework.orm Fix generics and serialization warnings 2011-05-06 19:00:14 +00:00
org.springframework.oxm SPR-7805 - Add support for package binding in the JibxMashaller 2011-04-04 08:50:15 +00:00
org.springframework.spring-library Merge 3.1.0 development branch into trunk 2010-10-25 19:48:20 +00:00
org.springframework.spring-parent Updating JUnit and TestNG versions for IDEs and Maven. 2011-03-28 19:59:09 +00:00
org.springframework.test Update MockEnvironment / MockPropertySource types 2011-05-06 18:57:41 +00:00
org.springframework.transaction Introduce @EnableTransactionManagement 2011-05-06 19:10:25 +00:00
org.springframework.web Javadoc 2011-05-12 09:00:39 +00:00
org.springframework.web.portlet Include license.txt and notice.txt in module JARs 2011-02-09 06:56:40 +00:00
org.springframework.web.servlet Rename EnableMvcConfiguration->EnableWebMvc, refine method names in WebMvcConfigurer, fix issue with MappedInterceptors 2011-05-11 18:02:07 +00:00
org.springframework.web.struts [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
spring-framework-reference SPR-8256 2011-05-09 17:40:23 +00:00
src/test/java/org/springframework/core/env Merge 3.1.0 development branch into trunk 2010-10-25 19:48:20 +00:00
.gitignore M1 cut of environment, profiles and property work (SPR-7508) 2011-01-03 09:04:34 +00:00
build.properties Merge 3.1.0 development branch into trunk 2010-10-25 19:48:20 +00:00
build.versions [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
ci-build.properties adding properties file to simplify ant use in Bamboo CI build 2008-12-17 15:47:14 +00:00
eclipse-code-formatter.xml h2 embedded db support; updated formatting conventions not to auto-format javadoc; added hsqldb and h2 to jdbc maven pom as optional deps 2009-05-09 22:27:05 +00:00
spring-framework.ipr Merge 3.1.0 development branch into trunk 2010-10-25 19:48:20 +00:00
spring-framework.psf Renamed org.springframework.instrument.classloading module to org.springframework.instrument.tomcat 2009-09-25 12:51:58 +00:00