1. 22 10月, 2013 7 次提交
    • R
      Integrate suggested support for creating MVC URLs · bafc73f1
      Rossen Stoyanchev 提交于
      The key contract is MvcUrls. An instance is automatically created with
      the Spring MVC namespace and the MVC Java config but can also be easily
      created in any configuration.
      
      Some example tests can be found in DefaultMvcUrlsTests.
      
      Issue: SPR-10665, SPR-8826
      bafc73f1
    • O
      Introduced MvcUriComponentsBuilder to create URIs pointing to controller methods. · 4fd27b12
      Oliver Gierke 提交于
      MvcUriComponentsBuilder allows creating URIs that point to Spring MVC
      controller methods annotated with @RequestMapping. It builds them by
      exposing a mock method invocation API similar to Mockito, records the
      method invocations and thus builds up the URI by inspecting the mapping
      annotations and the parameters handed into the method invocations.
      
      Introduced a new SPI UriComponentsContributor that should be implemented 
      by HandlerMethodArgumentResolvers that actually contribute path segments 
      or query parameters to a URI. While the newly introduced 
      MvcUriComponentsBuilder looks up those UriComponentsContributor instances 
      from the MVC configuration.
      
      The MvcUriComponentsBuilderFactory (name to be discussed - MvcUris maybe?) 
      prevents the multiple lookups by keeping the UriComponentsBuilder 
      instances in an instance variable. So an instance of the factory could 
      be exposed as Spring bean or through a HandlerMethodArgumentResolver to 
      be injected into Controller methods.
      
      Issue: SPR-10665, SPR-8826
      4fd27b12
    • R
      Polish (minor) · 92a48b72
      Rossen Stoyanchev 提交于
      92a48b72
    • P
      Consistent ordering for @PropertySource locations · e3d3d8cd
      Phillip Webb 提交于
      Ensure that property source locations are processed in the same order
      regardless if the 'name' attribute is set or not.
      
      Prior to this commit multiple locations from a `@PropertySource` with
      a name were added to a `CompositePropertySource` in such a way that
      the first location would take precedence. This has now been reversed
      for consistence with unnamed `@PropertySource`s
      
      Issue: SPR-10820
      e3d3d8cd
    • P
      Multicaster support for events with null source · b0ff834e
      Phillip Webb 提交于
      Update `AbstractApplicationEventMulticaster` to support `EventObjects`
      with a null source (which can happen if they have been serialized).
      
      Issue: SPR-10945
      b0ff834e
    • P
      Add targetIsClass to SpEL property cache key · 6d882b14
      Phillip Webb 提交于
      Update the `CacheKey` class used by `ReflectivePropertyAccessor` to
      include if the target object is class. The prevents an incorrect cache
      hit from being returned when a property with the same name is read on
      both an object and its class. For example:
      
      	#{class.name}
      	#{name}
      
      Issue: SPR-10486
      6d882b14
    • S
      Assert context uniqueness against merged config · 7658d856
      Sam Brannen 提交于
      Prior to this commit, the uniqueness check for @ContextConfiguration
      attributes within a @ContextHierarchy was performed at a single test
      class level instead of against the merged configuration for all test
      class levels in the test class hierarchy.
      
      This commit addresses this issue by moving the uniqueness check
      algorithm from resolveContextHierarchyAttributes() to
      buildContextHierarchyMap() within ContextLoaderUtils.
      
      Issue: SPR-10997
      7658d856
  2. 19 10月, 2013 12 次提交
  3. 18 10月, 2013 13 次提交
  4. 17 10月, 2013 2 次提交
    • P
      Refine ResolvableType class · 3337fd32
      Phillip Webb 提交于
      - Support for serialization
      - Allow programmatic creation of an array from a given component type
      - Allow programmatic creation with given generics
      - Extract generics from Class types using Class.getTypeParameters()
      - Move TypeVariableResolver to an inner class (and make method private)
      - Refine 'resolve()' algorithm
      
      Issue: SPR-10973
      3337fd32
    • S
      Document 'annotated classes' in Testing chapter · 7ffd05a8
      Sam Brannen 提交于
      In order to help developers avoid surprises from unintended use of
      "@Bean Lite Mode" when referencing classes via @ContextConfiguration in
      the TestContext framework, this commit duplicates the previous
      discussion of "annotated classes" from the Javadoc for
      @ContextConfiguration as a tip in the "Context configuration with
      annotated classes" section of the Testing chapter in the reference
      manual.
      
      Issue: SPR-10971
      7ffd05a8
  5. 16 10月, 2013 4 次提交
  6. 15 10月, 2013 2 次提交