Commit Graph

325 Commits

Author SHA1 Message Date
Christoph Lingg
bd6cc94e5e #452 - Fix typo in the reference documentation. 2017-03-26 11:06:46 +02:00
Mark Paluch
59688e3623 #468 - Integrate version badge from spring.io. 2017-03-14 13:27:02 -05:00
Andrew D. Ball
f7a1d96af8 #534 - Fixed typo in reference documentation. 2017-01-31 18:00:26 +01:00
Christoph Strobl
a16ea77c15 #536 - Remove references to Assert single-arg methods.
Remove usage of calls to single-argument assertion methods by providing message.

Original pull request: #537.
2017-01-31 17:56:14 +01:00
Oliver Gierke
276a7c1f70 #538 - Updated location of static resources. 2017-01-31 17:54:06 +01:00
Spring Buildmaster
283a25154e #529 - Prepare next development iteration. 2016-12-22 13:09:36 +00:00
Spring Buildmaster
e192661183 #529 - Release version 0.23.0.RELEASE. 2016-12-22 13:09:35 +00:00
Oliver Gierke
4ad0b97f12 #529 - Updated changelog. 2016-12-22 14:03:40 +01:00
Oliver Gierke
fb0ba255a6 #527 - Revert a glitch introduced in move to Spring's UriComponentsBuilder API.
Our migration to the header handling for #509 (47cefe) unfortunately moved from starting with the servlet mapping for URI creation to using the full URI from the start.

This is now fixed by switching back by creating a UriComponentsBuilder from the current servlet mapping.

Related ticket: #509.
2016-12-22 12:08:32 +01:00
Spring Buildmaster
61528d3242 #473 - Prepare next development iteration. 2016-12-22 09:04:54 +01:00
Spring Buildmaster
0de4ca3e5d #473 - Release version 0.22.0.RELEASE. 2016-12-22 09:04:52 +01:00
Oliver Gierke
1bd8c9e504 #473 - Update changelog. 2016-12-21 13:52:44 +01:00
Oliver Gierke
150c4c759b #526 - Upgrade to Spring Framework 4.3.5. 2016-12-21 13:06:52 +01:00
Oliver Gierke
069628b5ac #473 - Switched to HTTPS for repository declarations. 2016-12-20 11:41:44 +01:00
Oliver Gierke
ad4a7f8912 #473 - Update Travis build configuration.
Removed execution of obsolete build profiles. Use more up to date JDK 8 for build.
2016-12-20 11:38:02 +01:00
Oliver Gierke
f5368ff9bf #473 - Dependency and plugin updates. 2016-12-20 11:34:32 +01:00
Oliver Gierke
d1ebe04d49 #520 - Polishing in RequestParamParameterAccessor. 2016-12-08 10:50:07 +01:00
Oliver Gierke
26c3620249 #520 - Added Jacoco plugin to SonarQube build profile. 2016-12-08 10:37:32 +01:00
Oliver Gierke
89323d0baf #520 - Polished a couple of SonarQube warnings. 2016-12-08 10:29:24 +01:00
Oliver Gierke
327e2cda76 #509 - Polishing.
Formatting and author note.

Original pull request: #519.
2016-12-07 16:56:07 +01:00
Oliver Trosien
47cefe6869 #509 - Align ControllerLinkBuilder's base URI generation with Spring Framework.
Removed the custom handling of proxy headers in ControllerLinkBuilder in favor of the behavior of UriComponentsBuilder in Spring Framework. The only thing that we keep custom is the handling of X-Forwarded-Ssl as it's rather non-standard.

Original pull request: #519.
2016-12-07 16:54:17 +01:00
Oliver Gierke
8f53d3f730 #473 - Update dependencies.
Jackson 2.7.4 -> 2.8.5
Minidev JSON 2.2 -> 2.2.1
2016-12-07 12:20:01 +01:00
Oliver Gierke
9b140fcd01 #517 - Upgraded to Spring 4.3.4. 2016-12-07 12:19:22 +01:00
Oliver Gierke
267181ba44 #511 - Caching UriTemplate instances for discovered mappings now. 2016-12-07 12:16:49 +01:00
Oliver Gierke
2daf8aabfb #169 - Added support for creating URI templates by pointing to controller methods.
If not all parameters are handed to a fake controller method invocation, the resulting link is now becoming a URI template. That means there are some tiny changes to the general behavior:

1. Missing required parts (like a path segment) are not rejected immediately but only if the resulting link is expanded itself.
2. Missing request parameters now appear in the resulting link, either in mandatory form (e.g. ?foo={foo}) or optionally (e.g. /{?foo}). To resolve these, the Link has to be expanded in turn.
2016-12-07 12:08:05 +01:00
Oliver Gierke
4838e9f40c #511 - Performance improvements in link building.
We're now caching meta information about controller methods and their parameters more aggressively to avoid repeated lookups of such information via reflection. We're also keeping reference to proxy classes generated through CGlib around to avoid costly regeneration.

Note that the main culprit causing the drastic numbers reported in the original ticket stem from a problem in Spring's TypeDescriptor which triggers costly equals(…) comparisons on synthesized annotations [0].

Removed conditional reflective lookup of DefaultParameterNameDiscoverer as it's now present by definition.

[0] https://jira.spring.io/browse/SPR-14926
2016-11-21 12:54:57 +01:00
Oliver Gierke
1f57378b84 #504 - Parsing links now supports all rel formats defined in RFC5988. 2016-10-28 11:30:00 +02:00
Oliver Gierke
304585f83d #507 - Upgraded Spring 5 build profile to 5.0 M2.
Added build profile to Travis setup.
2016-10-28 10:45:35 +02:00
Oliver Gierke
2875ecba4a #499 - Polishing.
Extended year range in license header.

Original pull request: #500.
2016-10-28 09:51:13 +02:00
Michael Hibay
a473943be4 #499 - Adding id property to Ext to conform to ALPS spec.
Adapted unit tests to include the additional field.

Original pull request: #500.
2016-10-28 09:50:53 +02:00
Oliver Gierke
d8b7dcbca1 #471 - Polishing.
Fixed imports and reinstantiated old unit test to make sure we actually test both scenarios.

Original pull request: #497.
2016-10-28 09:43:23 +02:00
Mark Paluch
a7f8a2c698 #471 -Support composed annotations in AnnotationMappingDiscoverer.
We now support composed annotations using @AliasFor such as @GetMapping that are mixed with @RequestMapping on type and method level.

@RequestMapping("type")
class MyController {

	@GetMapping("method")
	String method() {
	   …
	}
}

Original pull request: #497.
2016-10-28 09:38:49 +02:00
Oliver Gierke
642b673676 #486 - Fixed assignment checks of ResolvableTypes for wildcarded method return types.
ResourceProcessorInvoker suffered from Spring's ResolvableType.fromClass(…) using strong assignability checks between raw types and wildcarded right hand side types (i.e. Collection VS. Collection<?>). This has been reported [0] and fixed already but we have to switch to ResolvableType.fromRawClass(…) to get the desired assignment check behavior.

Tightened unit tests to verify the calls to the delegate handler, which had been disabled by accident and thus prevented us from detecting the issue with ResolvableType beforehand.

[0] https://jira.spring.io/browse/SPR-14648
2016-08-31 17:08:15 +02:00
Oliver Gierke
e5c6485985 #485 - Upgraded to Spring 4.3
Upgraded to Spring 4.3.3 snapshots for now to benefit from fixes in ResolvableType [0]. Upgraded to Jackson 2.7.4 on the way and added a build profile for released Spring 5 versions.

[0] https://jira.spring.io/browse/SPR-14648
2016-08-31 17:07:18 +02:00
Spring Buildmaster
f1fd16cded #472 - Prepare next development iteration. 2016-07-27 11:02:15 +00:00
Spring Buildmaster
ff33320af7 #472 - Release version 0.21.0.RELEASE. 2016-07-27 11:02:14 +00:00
Oliver Gierke
dbc4b48ea4 #472 - Updated changelog. 2016-07-27 12:37:00 +02:00
Oliver Gierke
266ad50b35 #469 - Removed support for AnnotationMethodHandlerAdapter.
Added a Spring 5 specific build profile and removed the references to AnnotationMethodHandlerAdapter which already had been deprecated in the latest Spring 3 in favor of RequestMappingHandlerAdapter.

Updated Spring build profiles in general.
2016-07-25 20:32:27 +02:00
Oliver Gierke
bdb441c563 #464 - Fixes references to Traverson tests from reference documentation. 2016-06-28 08:36:48 +02:00
Oliver Gierke
0331b8d2c7 #460 - HalHandlerInstantiator now uses a BeanFactory for all non pre-registered types.
The HalHandlerInstantiator now accepts an AutowireCapableBeanFactory to delegate component creation requests to for non pre-build serializers. This allows other serializers to benefit from Spring instantiation but at the same time use the dedicated serializers created as singletons.
2016-06-09 17:20:27 +02:00
Spring Buildmaster
01084c5fbd #458 - Prepare next development iteration. 2016-06-06 17:07:20 +00:00
Spring Buildmaster
63b9ec202c #458 - Release version 0.20.0.RELEASE. 2016-06-06 17:07:20 +00:00
Oliver Gierke
d3b7e9dbb4 #458 - Updated changelog. 2016-06-06 18:59:17 +02:00
Oliver Gierke
52675b7e39 #458 - Updated build profiles for Spring 4.3. 2016-06-06 18:57:54 +02:00
Oliver Gierke
cbbc2b2d84 #440 - Links now parses URIs containing commas correctly.
Switched to a regular expression based split of links to make sure URIs that contain commas do not interfere with the rather simplified splitting algorithm we used before.
2016-06-06 11:47:24 +02:00
Ray Sinnema
078e1126c9 #397 - Fixed typos in reference documentation. 2016-06-06 11:33:34 +02:00
Oliver Gierke
4d189cf11f #457 - Polished usage of Lombok in ALPS package.
Switched to the non-experimental @Builder. Upgraded to Lombok 1.16.8.
2016-06-06 11:26:59 +02:00
Oliver Gierke
40898cb1ea #362 - Moved ResourceProcessor invoking infrastructure from Spring Data REST. 2016-06-06 11:25:19 +02:00
Oliver Gierke
28687af228 #455 - More removals of deprecations in ResourcesMixin. 2016-05-20 18:42:02 +02:00
Oliver Gierke
33ad2e0947 #455 - Adapt Jackson2HalModule to assure Jackson 2.7 compatibility.
Changed invocations of constructors of the super class in Jackson Serializers to use JavaType instead of Class<?> as the constructor has been removed in some of the base classes in Jackson 2.7.

Upgraded to Jackson 2.5.5 along the way.
2016-05-20 14:12:34 +02:00