#707 - Refactor Affordances to better support Spring Data REST.

* Move Spring MVC method scanning out of the core Affordances API and into SpringMvcAffordanceBuilder to make it easy to use in Spring Data REST (where method scanning isn't needed).
* Also push attributes from Affordance into AffordanceModel to centralize the details.
* Certain serializers must be registered differently due to Jackson's rules of precedence given Spring Data REST needs to override them.
This commit is contained in:
Greg Turnquist
2018-04-18 14:22:54 -05:00
parent 2e7eabdc1a
commit 820f66179f
29 changed files with 549 additions and 543 deletions

View File

@@ -19,7 +19,7 @@ import lombok.Data;
import lombok.RequiredArgsConstructor;
/**
* Web framework-neutral representation of a web request's query parameter (http://example.com?name=foo).
* Representation of a web request's query parameter (http://example.com?name=foo) => {"name", "foo", true}.
*
* @author Greg Turnquist
*/
@@ -28,6 +28,6 @@ import lombok.RequiredArgsConstructor;
public class QueryParameter {
private final String name;
private final boolean required;
private final String value;
private final boolean required;
}