1. 18 5月, 2011 1 次提交
    • C
      revise cache API · 0b917e3f
      Costin Leau 提交于
      - eliminate unneeded methods
      + introduced value wrapper (name still to be decided) to avoid cache race conditions
      + improved name consistency
      0b917e3f
  2. 17 5月, 2011 4 次提交
  3. 16 5月, 2011 1 次提交
  4. 14 5月, 2011 4 次提交
  5. 13 5月, 2011 8 次提交
  6. 12 5月, 2011 8 次提交
  7. 11 5月, 2011 8 次提交
  8. 10 5月, 2011 4 次提交
    • C
      Allow static modifier on @Bean methods · 52bef0b7
      Chris Beams 提交于
      Declaring @Bean methods as 'static' is now permitted, whereas previously
      it raised an exception at @Configuration class validation time.
      
      A static @Bean method can be called by the container without requiring
      the instantiation of its declaring @Configuration class. This is
      particularly useful when dealing with BeanFactoryPostProcessor beans,
      as they can interfere with the standard post-processing lifecycle
      necessary to handle @Autowired, @Inject, @Value, @PostConstruct and
      other annotations.
      
      static @Bean methods cannot recieve CGLIB enhancement for scoping and
      AOP concerns. This is acceptable in BFPP cases as they rarely if ever
      need it, and should not in typical cases ever be called by another
      @Bean method.  Once invoked by the container, the resulting bean will
      be cached as usual, but multiple invocations of the static @Bean method
      will result in creation of multiple instances of the bean.
      
      static @Bean methods may not, for obvious reasons, refer to normal
      instance @Bean methods, but again this is not likely a concern for BFPP
      types. In the rare case that they do need a bean reference, parameter
      injection into the static @Bean method is technically an option, but
      should be avoided as it will potentially cause premature instantiation
      of more beans that the user may have intended.
      
      Note particularly that a WARN-level log message is now issued for any
      non-static @Bean method with a return type assignable to BFPP.  This
      serves as a strong recommendation to users that they always mark BFPP
      @Bean methods as static.
      
      See @Bean Javadoc for complete details.
      
      Issue: SPR-8257, SPR-8269
      52bef0b7
    • C
      Test interaction of @ComponentScan and @Import · 859185d0
      Chris Beams 提交于
      859185d0
    • A
      71aae405
    • C
      SPR-8256 · 7f247a6b
      Costin Leau 提交于
      + doc updates
      7f247a6b
  9. 09 5月, 2011 2 次提交