1. 17 11月, 2011 6 次提交
  2. 16 11月, 2011 16 次提交
    • C
      Refactor ImportSelector support · d1f6672a
      Chris Beams 提交于
      Separate concerns of @Configuration class selection from the need to
      register certain infrastructure beans such as auto proxy creators.
      
      Prior to this change, ImportSelector implementations were responsible
      for both of these concerns, leading to awkwardness and duplication.
      
      Also introduced in this change is ImportBeanDefinitionRegistrar and
      two implementations, AutoProxyRegistrar and AspectJAutoProxyRegistrar.
      See the refactored implementations of CachingConfigurationSelector,
      TransactionManagementConfigurationSelector to see the former;
      AspectJAutoProxyConfigurationSelector to see the latter.
      
      ImportSelector and ImportBeanDefinitionRegistrar are both handled as
      special-case arguments to the @Import annotation within
      ConfigurationClassParser.
      
      These refactorings are important because they ensure that Spring users
      will be able to understand and extend existing @Enable* annotations
      and their backing ImportSelector and @Configuration classes, as well
      as create their own with a minimum of effort.
      d1f6672a
    • C
      Introduce @EnableCaching · 4f3cbb45
      Chris Beams 提交于
      See EnableCaching Javadoc for details.
      
      Issue: SPR-8312
      4f3cbb45
    • C
      Rename @CacheDefinitions => @Caching · 732bf585
      Chris Beams 提交于
      Also eliminate all 'cache definition' language in favor of
      'cache operation' in comments, method and parameter names (most
      classes had already been refactored to this effect).
      732bf585
    • C
      Convert cache package line endings from CRLF => LF · a252a285
      Chris Beams 提交于
      Unfortunately creates a large diff due to whitespace changes as well as
      false attribution of authorship from a git/svn 'blame' perspective.
      
      Be sure to perform diffs using `git diff -w` or `svn diff -w` when
      reviewing recent changes to these sources to ignore all whitespace.
      a252a285
    • C
      Rename KeyGenerator#extract => #generate · f9879b76
      Chris Beams 提交于
      f9879b76
    • C
      Extract various constants in DefaultKeyGenerator · 06306f91
      Chris Beams 提交于
      06306f91
    • C
      Prune CacheAspectSupport#setCacheOperationSource · 83d099db
      Chris Beams 提交于
      In favor of existing #setCacheOperationSources(CacheOperationSource...)
      
      Also polish Javadoc throughout, replacing stale references to
      CacheDefinitionSource where appropriate as well as other minor changes
      83d099db
    • C
      Add generics to AbstractCacheManager#caches · 42cbee88
      Chris Beams 提交于
      Facilitates type-safe programmatic configuration from @Bean methods:
      
          @Bean
          public CacheManager cacheManager() {
              SimpleCacheManager cm = new SimpleCacheManager();
              cm.setCaches(Arrays.asList(
                  new ConcurrentMapCache("default"),
                  new ConcurrentMapCache("primary"),
                  new ConcurrentMapCache("secondary")
              ));
              return cm;
          }
      
      Prior to this change, the code above would have raised errors on the
      Arrays.asList() call because it returns a Collection<? extends Cache>
      as opposed to Collection<Cache>.
      
      After this change, AbstractCacheManager expects
      Collection<? extends Cache> throughout.
      42cbee88
    • C
      Remove stale duplicate copy of spring-cache XSD · 7a71af29
      Chris Beams 提交于
      This was removed once previously but accidentally re-introduced later.
      The 'correct' version of spring-cache-3.1.xsd lives in spring-context
      as opposed to here in spring-context-support.
      
      Also placed .gitignore file within src/main/resources such that the
      now-empty directory does not get pruned in git environments, which will
      otherwise cause 'missing source folder' errors within Eclipse/IDEA.
      7a71af29
    • C
      Refactor cache support test hierarchy · 96200b69
      Chris Beams 提交于
      Refactored getConfig => getApplicationContext such that subclasses have
      control over the type of ApplicationContext used by the base class
      tests. Done in anticipation of @EnableCaching tests that will favor use
      of AnnotationConfigApplicationContext
      
      Also updated all use of ClassPathXmlApplictionContext to
      GenericXmlApplicationContext, which is generally preferred.
      96200b69
    • C
      Polish cache Javadoc · b7f9bf2e
      Chris Beams 提交于
      b7f9bf2e
    • C
      Fix cache generics warnings; polish whitespace · 8abb3150
      Chris Beams 提交于
      8abb3150
    • C
      Update proxyTargetClass-related Javadoc; add tests · 1533822b
      Chris Beams 提交于
      There was some question about whether enabling subclass proxies via
      proxyTargetClass / proxy-target-class settings would break annotation-
      based demarcation of joinpoints due to inability to discover those
      annotations in various scenarios. The provided tests prove that in
      any conceivable case, these annotations (@Transactional, at least)
      are discovered in a consistent fashion, meaning that switching proxy
      strategies should be transparent to the application and honor
      intended annotation semantics.
      1533822b
    • C
      Polish @EnableAsync imports, etc · 12466218
      Chris Beams 提交于
      12466218
    • C
      Polish @Enable* Javadoc · 43b3b4c2
      Chris Beams 提交于
      43b3b4c2
    • C
      Improve ImportStack#toString output · 40798bd4
      Chris Beams 提交于
      40798bd4
  3. 13 11月, 2011 3 次提交
  4. 12 11月, 2011 1 次提交
  5. 11 11月, 2011 2 次提交
  6. 10 11月, 2011 2 次提交
  7. 09 11月, 2011 6 次提交
  8. 08 11月, 2011 1 次提交
  9. 07 11月, 2011 1 次提交
  10. 05 11月, 2011 2 次提交