- 26 10月, 2013 2 次提交
-
-
由 Juergen Hoeller 提交于
Issue: SPR-11032
-
由 Juergen Hoeller 提交于
Issue: SPR-11031
-
- 25 10月, 2013 5 次提交
-
-
由 Juergen Hoeller 提交于
DefaultListableBeanFactory performs a fallback check for autowire candidates now, which GenericTypeAwareAutowireCandidateResolver implements to accept raw type matches if the target class has unresolvable type variables. Full generic matches are still preferred; the BeanFactory will only start looking for fallback matches if the first pass led to an empty result. Issue: SPR-10993 Issue: SPR-11004
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
-
由 Rossen Stoyanchev 提交于
Introduce base class AbstractMethodMessageHandler for HandlerMethod-based message handling. Add MessageCondition interface for mapping conditions to messages with support for combining type- and method-level annotation conditions, the ability to match conditions to messages, and also comparing matches to select the best match. Issue: SPR-11024
-
- 24 10月, 2013 2 次提交
-
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
-
- 23 10月, 2013 4 次提交
-
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
-
由 Sam Brannen 提交于
The testDefaultConfig() method in MvcNamespaceTests creates a new Date() in its test fixture but then performs an assertion against a hard coded data string of "2013-10-21". This test therefore only passed yesterday, on October 21, 2013. This commit addresses this by changing the hard coded date string to one based on the current date. Issue: SPR-10665, SPR-8826
-
由 Phillip Webb 提交于
Support repeatable @PropertySource annotations in Java 8 and add @PropertySources container annotation for Java 6/7. Also add an ignoreResourceNotFound attribute to @PropertySource allowing missing property resources to be silently ignored. This commit also introduces some generally useful methods to AnnotationUtils for working with @Repeatable annotations. Issue: SPR-8371
-
- 22 10月, 2013 8 次提交
-
-
由 Rossen Stoyanchev 提交于
-
由 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
-
由 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
-
由 Rossen Stoyanchev 提交于
-
由 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
-
由 Phillip Webb 提交于
Update `AbstractApplicationEventMulticaster` to support `EventObjects` with a null source (which can happen if they have been serialized). Issue: SPR-10945
-
由 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
-
由 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
-
- 19 10月, 2013 12 次提交
-
-
由 Phillip Webb 提交于
Update getValue(EvaluationContext context, Object rootObject, Class<T> desiredResultType) to propagate the EvaluationContext to ExpressionUtils. Issue: SPR-10953
-
由 Phillip Webb 提交于
Update TypeConverterDelegate to bypass conversion when the target type is Object.class. Prior to this commit converting a single element array to an Object would result in the element being returned, rather than the array itself. Issue: SPR-10996
-
由 Phillip Webb 提交于
Relax the method search algorithm used by `ReflectivePropertyAccessor` to include methods of the form `getXY()` for properties of the form `xy`. Although the JavaBean specification indicates that a property `xy` should use the accessors `getxY()` and `setxY()`, in practice many developers choose to have an uppercase first character. The `ReflectivePropertyAccessor` will now consider these style methods if the traditional conventions fail to find a match. Issue: SPR-10716
-
由 Phillip Webb 提交于
-
由 Rossen Stoyanchev 提交于
Restore pringing the payload first and headers second as it has been in SI but also handle specifically the case where the body is a byte array to minimize unnecessary "noise" that causes otherwise for STOMP msgs.
-
由 Rossen Stoyanchev 提交于
The STOMP UNSUBSCRIBE message does not have a destination header so there is no obvious simple way to do a mapping and the need for it is not clear yet.
-
由 Rossen Stoyanchev 提交于
-
由 Brian Clozel 提交于
Prior to this commit, @SubscribeEvent @UnsubscribeEvent and @MessageMapping annotated message handling methods could only match a strict message destination. This commit adds a @PathVariable annotation and updates the message matching/handling process, since message handling methods can now match PathMatcher-like destinations and get path variables injected in parameters. Issue: SPR-10949
-
由 Brian Clozel 提交于
This version fixed bugs and improved performance. New features: "select multiple attributes" and "Array operations and slicing improved" (a new example has been added in tests to reflect that). See https://github.com/jayway/JsonPath/blob/master/README Issue: SPR-10990
-
由 Phillip Webb 提交于
Restore the ability to create a TypeDescriptor for a collection or map where the generics may be null. Issue: SPR-11006
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Issue: SPR-10222
-
- 18 10月, 2013 7 次提交
-
-
由 Brian Clozel 提交于
Prior to this commit, @ControllerAdvice annotated beans would assist all known Controllers, by applying @ExceptionHandler, @InitBinder, and @ModelAttribute. This commit updates the @ControllerAdvice annotation, which accepts now base package names, assignableTypes, annotations and basePackageClasses. If attributes are set, only Controllers that match those selectors will be assisted by the annotated class. This commit does not change the default behavior when no value is set, i.e. @ControllerAdvice(). Issue: SPR-10222
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
This change adds abstractions for opening and managing TCP connections primarily for use with the STOMP broker support. As one immediate benefit the change makes the StompBrokerRelayMessageHandler more easy to test.
-
由 Rossen Stoyanchev 提交于
This change consolidates TCP-related logic in the StompRelaySession. As a result the sub-class SystemStompRelaySession now contains only logic intrinsic to the shared system session.
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
This change upgrades reactor to 1.0 RC1 and also removes the reactor-based message channel in favor of the one available from org.projectreactor:reactor-spring.
-