- 20 2月, 2015 4 次提交
-
-
由 Juergen Hoeller 提交于
The protected validation methods are analogous to ModelAttributeMethodProcessor now. Issue: SPR-12655
-
由 Sam Brannen 提交于
The convertJmsInvokerAccessException() method in JmsInvokerClientInterceptor now correctly returns the converted exception instead of throwing it.
-
由 Sam Brannen 提交于
-
由 Stephane Nicoll 提交于
JmsInvokerClientInterceptor defines a receiveTimeout field but does not handle such timeout. This commit adds an additional callback that throws an RemoteTimeoutException instead. Sub-classes can override the onReceiveTimeout to throw a different exception or return a fallback RemoteInvocationResult. Issue: SPR-12731
-
- 19 2月, 2015 13 次提交
-
-
由 Sebastien Deleuze 提交于
-
由 Sebastien Deleuze 提交于
With this commit, WebUtils.isValidOrigin() logs an error message instead of throwing an IllegalArgumentException when Origin header value is invalid (for example when it does not contain the scheme). Issue: SPR-12697
-
由 Stephane Nicoll 提交于
* CodeFlowJavadocFix: Fix copy/paste error in Javadoc
-
由 Eric Bottard 提交于
-
由 Stephane Nicoll 提交于
Deprecated CommonsPoolTargetSource (supporting commons pool 1.5+) in favor of CommonsPool2TargetSource with a similar contract. Commons Pool 2.x uses object equality while Commons Pool 1.x used identity equality. This clearly means that Commons Pool 2 behaves differently if several instances having the same identity according to their `Object#equals(Object)` method are managed in the same pool. To provide a smooth upgrade, a backward-compatible pool is created by default; use `setUseObjectEquality(boolean)` if you need the standard Commons Pool 2.x behavior. Issue: SPR-12532
-
由 Stephane Nicoll 提交于
Previously, the `@order` annotation was managed in an inconsistent way when placed at the implementation level. For simple beans, it was discovered properly but wasn't for beans requiring a proxy. OrderComparator.SourceProvider now explicitly allows to return several order sources; the default implementation returns not only the factory method (if any) but also the target class if it happens to be different from the class of the bean. Issue: SPR-12636
-
由 Juergen Hoeller 提交于
Issue: SPR-12639
-
由 Juergen Hoeller 提交于
Issue: SPR-12730
-
由 Sam Brannen 提交于
- fixed typos - improved grammar and punctuation - fixed class names
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12728
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12727
-
- 18 2月, 2015 11 次提交
-
-
由 Juergen Hoeller 提交于
Issue: SPR-12644
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-12724
-
由 Juergen Hoeller 提交于
Issue: SPR-12644
-
由 Juergen Hoeller 提交于
Issue: SPR-12723
-
由 Juergen Hoeller 提交于
Issue: SPR-12709
-
由 Sebastien Deleuze 提交于
Issue: SPR-12724
-
由 Sebastien Deleuze 提交于
This commit adds support for a same origin check that compares Origin header to Host header. It also changes the default setting from all origins allowed to only same origin allowed. Issues: SPR-12697, SPR-12685
-
由 Sam Brannen 提交于
- Added assertions for pre-conditions on method arguments for all public utility methods. - Introduced additional tests in TestPropertySourceUtilsTests to verify the new pre-conditions. - Introduced INLINED_PROPERTIES_PROPERTY_SOURCE_NAME constant for the name of the MapPropertySource created from inlined properties; the name therefore no longer contains the inlined properties, but the original values of the inlined properties can now be logged at debug level. - Simplified tests in InlinedPropertiesTestPropertySourceTests. Issue: SPR-12721
-
由 Sam Brannen 提交于
-
- 17 2月, 2015 4 次提交
-
-
由 Sam Brannen 提交于
Spring Framework 4.1 introduced support for @TestPropertySource; however, the utilities used to parse inlined properties and add test property sources to the environment are currently private which prevents reuse by third-party frameworks like Spring Boot. This commit addresses this issue by making such utilities public. - TestPropertySourceUtils is now a public class. - Various utility methods in TestPropertySourceUtils have been made public. - addResourcePropertySourcesToEnvironment() has been renamed to addPropertiesFilesToEnvironment(). - extractEnvironmentProperties() has been renamed to convertInlinedPropertiesToMap(). - All public methods in TestPropertySourceUtils are now fully documented. Issue: SPR-12721
-
由 Sam Brannen 提交于
The initial implementation for adding inlined properties configured via @TestPropertySource to the context's environment did not preserve the order in which the properties were physically declared. This makes @TestPropertySource a poor testing facility for mimicking the production environment's configuration if the property source mechanism used in production preserves ordering of property names -- which is the case for YAML-based property sources used in Spring Boot, Spring Yarn, etc. This commit addresses this issue by ensuring that the ordering of inlined properties declared via @TestPropertySource is preserved. Specifically, the original functionality has been refactored. extracted from AbstractContextLoader, and moved to TestPropertySourceUtils where it may later be made public for general purpose use in other frameworks. Issue: SPR-12710
-
由 Sam Brannen 提交于
-
由 Rossen Stoyanchev 提交于
Before this change the WebSocketTransportHandler passed Collections.emptyMap as attributes to the HandshakeHandler because it didn't matter what attributes the underlying WebSocketSession has since it is wrapped by the SockJsSession and that's what exposed for use everywhere. This change has the WebSocketTransportHandler passing the attributes from the SockJsSession instead since it's more accurate for the underlying WebSocketSession to have access to the same map instance and it allows the HandshakeHandler to change the attributes even if it doesn't need to do that today. Issue: SPR-12716
-
- 16 2月, 2015 1 次提交
-
-
由 Stephane Nicoll 提交于
AnnotationListener implementations can now be ordered either using the `@order` annotation or by implementing the Ordered interface. Issue: SPR-12410
-
- 13 2月, 2015 2 次提交
-
-
由 Sam Brannen 提交于
This commit introduces further regression tests to ensure proper parsing of inlined properties configured via @TestPropertySource. Specifically, these additional tests ensure that we do not introduce a bug like the one raised in Spring Boot issue #1110 [0]. [0] https://github.com/spring-projects/spring-boot/issues/1110 Issue: SPR-12710
-
由 Sam Brannen 提交于
-
- 12 2月, 2015 5 次提交
-
-
由 Stephane Nicoll 提交于
Previously, the exception-handler attribute was not taken care of when task:annotation-driven is used in AspectJ mode. This commit provides the expected behavior. Issue: SPR-12619
-
由 Stephane Nicoll 提交于
Issue: SPR-11803
-
由 Stephane Nicoll 提交于
* patch-3: fix javadoc typo
-
由 John Tims 提交于
-
由 Juergen Hoeller 提交于
-