Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Jackson annotations to determine visibility and names of properties. #136

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hansbarnard
Copy link

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.

@sdaschner
Copy link
Owner

Cool! Will check asap.

We should also think about supporting JSON-B (Java EE 8).

@rmannibucau
Copy link
Contributor

+1 for that and to support JSON-B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants