jaxrs-analyzer
jaxrs-analyzer copied to clipboard
Add support for Jackson annotations to determine visibility and names of properties.
I added support for Jackson annotations:
- for controlling visibility of fields/methods
- adhering to @JsonIgnore
- adhering to the JSON property name as specified in @JsonProperty("my_property")
- adhering to @JsonAutoDetect
A runtime arg will determine whether JAXB (default) or Jackson is used. Field/getter visibility rules and name resolution is entirely delegated to the Jackson library.
I also fixed an issue with one of the existing tests. Although the test appears to work by itself it leaves the JobRegistry.INSTANCE value as a mocked instance. This breaks a subsequent test but only if the other test is run after this test. In other words you might not always see the test failing. For example in Eclipse it worked fine but from commandline it failed for me.
Cool! Will check asap.
We should also think about supporting JSON-B (Java EE 8).
+1 for that and to support JSON-B