Stephane Nicoll
eb49f3c225
Add interface-based detection test
...
Add a test that explicitely validates that `@ManagedResource` and friends
can be set on an interface.
Issue: SPR-13138
2016-01-18 14:14:17 +01:00
Stephane Nicoll
a112557dc4
Support SendTo at class-level
...
Issue: SPR-13578
2016-01-16 16:34:02 +01:00
Rossen Stoyanchev
73a794336c
Support @ResponseStatus on controller type level
...
Issue: SPR-13547
2016-01-15 17:15:34 -05:00
Rossen Stoyanchev
4b1183582a
Add methodCall option to HandlerResultMatchers
...
Issue: SPR-13736
2016-01-15 12:44:00 -05:00
Rossen Stoyanchev
1320da906b
Polish HandlerResultMatchers
2016-01-15 12:44:00 -05:00
Juergen Hoeller
74c07d3085
Removed JavaVersion checks from spring-core tests (for JDK 9 compatibility)
...
Issue: SPR-13344
2016-01-15 17:45:37 +01:00
Juergen Hoeller
182b1e99e3
TODO marker for test which fails as of AspectJ 1.9 beta 3
...
Issue: SPR-13839
2016-01-15 17:43:59 +01:00
Stephane Nicoll
dc8de51408
Json view support for JMS
...
Support of @JsonView on @JmsListener annotated method that uses the
jackson converter. Also update MappingJackson2MessageConverter to offer
a public API to set the JSON view to use to serialize a payload.
Issue: SPR-13237
2016-01-15 17:18:14 +01:00
Juergen Hoeller
cdc9bf76a9
SessionDisconnectEvent actually preserves given session user
...
Issue: SPR-13871
2016-01-15 17:03:17 +01:00
Juergen Hoeller
9761af9ad8
Validate @RequestMapping methods on AOP proxies
...
Issue: SPR-13842
2016-01-15 17:01:58 +01:00
Juergen Hoeller
c1352c1201
Upgrade to AspectJ 1.9 beta 3 (for build compatibility with JDK 9 build 95+)
...
Issue: SPR-13839
2016-01-15 17:01:10 +01:00
Stephane Nicoll
2fc2c29e9a
Update copyright header
2016-01-15 10:51:11 +01:00
Rossen Stoyanchev
3dae3fd8a9
Refine ListenableFutureCallback policy for exceptions
...
This change updates all cases where callbacks are invoked to catch and
suppress errors (since there is not match to do with and error from
a callback be it success or failure).
Also updated is the contract itself to clarify this and emphasize the
callbacks are really notifications for the outcome of the
ListenableFuture not the callbacks themselves.
Issue: SPR-13785
2016-01-14 17:49:01 -05:00
Rossen Stoyanchev
037f351efd
Replace anonymous impls with ListenableFutureAdapater
...
Before this change AsyncRestTemplate had two anonymous implementations
of ListenableFuture that were adapting the result. Those have been
replaces with ListenableFutureAdapter.
This commit is preparation for SPR-13785.
2016-01-14 16:47:55 -05:00
Ian Chan
93298fc9fa
Catch RejectedExecutionException in WebAsyncManager
...
Issue: SPR-13836
2016-01-14 15:47:00 -05:00
Rossen Stoyanchev
4818378c25
Better document client-side tests against MockMvc
...
Issue: SPR-13815
2016-01-14 15:15:07 -05:00
Rossen Stoyanchev
7690f27c5e
Add MediaType constants for application/pdf
...
Issue: SPR-13831
2016-01-14 14:57:09 -05:00
Rossen Stoyanchev
f3c2bb6557
Fix error message in RestTemplate
...
Issue: SPR-13860
2016-01-14 14:52:10 -05:00
Rossen Stoyanchev
24fdf64d91
Fix javadoc issue in ResponseEntityExceptionHandler
...
Issue: SPR-13869
2016-01-14 14:25:30 -05:00
Rossen Stoyanchev
e56587dcc3
Add note to @CrossOrigin javadoc
...
Issue: SPR-13857
2016-01-14 14:13:53 -05:00
Stephane Nicoll
31a3607de6
Lazy resolution of the JMS message
...
Previously, any `javax.jms.Message` was converted eagerly to the Message
abstraction. This leads to unnecessary conversion if the Payload is not
requested by the underlying method (i.e. if the `javax.jms.Message` is
injected directly).
This commit returns a `Message` implementation that holds the
`javax.jms.Message` and lazily resolve the payload or the headers on
demand (that is the first time they are requested).
Issue: SPR-13777
2016-01-14 17:20:25 +01:00
Juergen Hoeller
50829c9fdc
Shared EntityManager does not insist on actualTransactionActive flag anymore
...
Issue: SPR-13838
2016-01-13 14:11:13 +01:00
Juergen Hoeller
773d175681
Polishing
2016-01-13 12:52:05 +01:00
Juergen Hoeller
e14c2de1d2
ImportStack extends ArrayDeque instead of Stack and relies on standard contains implementation
...
Issue: SPR-13852
2016-01-13 12:46:28 +01:00
Juergen Hoeller
5d4547d343
FastByteArrayInputStream consistently returns -1 when no data available
...
Issue: SPR-13858
2016-01-13 12:44:34 +01:00
Stephane Nicoll
96cb0e6bd6
Upgrade to Undertow 1.3.12
2016-01-12 16:34:13 +01:00
Stephane Nicoll
ee946f6ac6
Fix typo
2016-01-12 15:05:59 +01:00
Dennis Kieselhorst
554bf4958d
Improve Content-Length exception message
...
In case ShallowEtagHeaderFilter is not used, the message was confusing
2016-01-08 09:30:31 +01:00
Brian Clozel
cdda839426
XML configuration support for RFC 5861
...
This commit adds the XML+XSD configuration part of the RFC 5861
Cache-Control directives added in Spring's `CacheControl`.
Issue: SPR-13841
2016-01-07 18:13:34 +01:00
madorb
6c282096c6
Add RFC-5681 support to CacheControl
...
This commit adds the "stale-while-revalidate" and "stale-if-error"
Cache-Control directives in the `CacheControl` support class.
Issue: SPR-13841
2016-01-07 18:13:26 +01:00
Brian Clozel
d681f77d62
Polish
...
Issue: SPR-13817
2016-01-05 17:31:30 +01:00
Brian Clozel
473cf9c40e
Preserve ETag HTTP header for versioned resources
...
Prior to this change, a resource handler chain configured with a
`VersionResourceResolver` would add the resource version to the request
attributes when serving that resource. This approach would not work when
a `CachingResourceResolver` is configured and the resource is already
cached. Indeed, that code path is not executed when the resource is
resolved from the cache.
This commit adds a new `VersionedResource` interface that's used by the
`VersionResourceResolver`, adding a `getVersion()` method that returns
the version string for that resource. This way, the version information
is cached with the resource itself and the request attributes are no
longer used for this.
Issue: SPR-13817
2016-01-05 14:55:14 +01:00
Stephane Nicoll
6e7e4c0359
Merge pull request #948 from kamilszymanski/jcache-docs
...
* pr/948:
Fix list of supported JCache annotations
2016-01-05 08:15:02 +00:00
Kamil Szymanski
fca7c52236
Fix list of supported JCache annotations
...
Closes gh-948
2016-01-05 08:13:06 +00:00
Juergen Hoeller
04f31816bd
Avoid getTypeForFactoryBean warn logging for lazy-init beans
...
Issue: SPR-13833
2015-12-31 11:47:46 +01:00
Juergen Hoeller
9bffb9e53f
Refined RequestMappingHandlerMapping bean definition
...
Issue: SPR-13832
2015-12-31 11:44:12 +01:00
holub
9152f20bc1
Update SockJS client code snippet
2015-12-30 10:21:46 +01:00
Juergen Hoeller
8968f09c59
Polishing
2015-12-29 22:04:38 +01:00
Juergen Hoeller
27c2e8c80d
Polishing
2015-12-29 21:40:20 +01:00
Juergen Hoeller
388bd87ef0
ComponentScan annotation is repeatable now
...
Issue: SPR-13151
2015-12-29 21:40:08 +01:00
Juergen Hoeller
aecb8b6c6b
Avoid sensitive Proxy.getInvocationHandler call in synthesizeAnnotation
...
Issue: SPR-13829
2015-12-29 21:39:43 +01:00
Brian Clozel
74d3bceb19
Add missing StatusResultMatcher for HTTP Status 451
...
Issue: SPR-13632
2015-12-29 21:23:09 +01:00
Brian Clozel
9e4cf85af7
Add HTTP Status 451 UNavailable for legal reasons
...
Issue: SPR-13632
2015-12-29 20:51:42 +01:00
Juergen Hoeller
4f955932a7
@Value can be used as aliased meta-annotation
...
Issue: SPR-13603
2015-12-29 18:02:16 +01:00
Juergen Hoeller
3242ad8fc4
@AliasFor attribute name defaults to declaring attribute
...
Issue: SPR-13828
2015-12-29 17:58:57 +01:00
Juergen Hoeller
e48ec4fcd3
StatementCreatorUtils always tries getParameterType on Oracle 12c driver
...
Issue: SPR-13825
2015-12-29 11:19:21 +01:00
Juergen Hoeller
1d8a3e1f07
BeanFactoryAnnotationUtils searches on bean implementation classes and meta-annotations as well
...
Issue: SPR-13819
Issue: SPR-13452
2015-12-28 23:28:08 +01:00
Stephane Nicoll
7d0ebddebe
Flag Caffeine as Java8+ only
...
See also SPR-13824
2015-12-28 15:06:35 +01:00
Juergen Hoeller
826a00a56a
Expect IllegalStateException instead of specific message for @Scheduled proxy mismatch
...
Issue: SPR-13816
2015-12-24 12:38:26 +01:00
Juergen Hoeller
d1551bdcec
Polishing
2015-12-23 21:19:18 +01:00