You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/05/04 10:57:07 UTC

[GitHub] [camel] klease opened a new pull request, #7544: CAMEL-17956: use registered ObjectMapper when parsing json.

klease opened a new pull request, #7544:
URL: https://github.com/apache/camel/pull/7544

   Add unit tests showing use of custom ObjectMapper for both parsing
   and serialization.
   
   <!-- Uncomment and fill this section if your PR is not trivial
   - [ ] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
   - [ ] Each commit in the pull request should have a meaningful subject line and body.
   - [ ] If you're unsure, you can format the pull request title like `[CAMEL-XXX] Fixes bug in camel-file component`, where you replace `CAMEL-XXX` with the appropriate JIRA issue.
   - [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
   - [ ] Run `mvn clean install -Psourcecheck` in your module with source check enabled to make sure basic checks pass and there are no checkstyle violations. A more thorough check will be performed on your pull request automatically.
   Below are the contribution guidelines:
   https://github.com/apache/camel/blob/main/CONTRIBUTING.md
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] github-actions[bot] commented on pull request #7544: CAMEL-17956: use registered ObjectMapper when parsing json.

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #7544:
URL: https://github.com/apache/camel/pull/7544#issuecomment-1117177611

   :warning: This PR changes Camel components and will be tested automatically.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] github-actions[bot] commented on pull request #7544: CAMEL-17956: use registered ObjectMapper when parsing json.

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #7544:
URL: https://github.com/apache/camel/pull/7544#issuecomment-1117269431

   :heavy_check_mark: Finished component verification: 0 component(s) test failed out of **1 component(s) tested**


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] davsclaus commented on a diff in pull request #7544: CAMEL-17956: use registered ObjectMapper when parsing json.

Posted by GitBox <gi...@apache.org>.
davsclaus commented on code in PR #7544:
URL: https://github.com/apache/camel/pull/7544#discussion_r864738033


##########
components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/JsonPathEngine.java:
##########
@@ -92,6 +103,16 @@ public JsonPathEngine(String expression, boolean writeAsString, boolean suppress
         this.hasSimple = simpleInUse;
     }
 
+    private ObjectMapper findRegisteredMapper(CamelContext context) {
+        if (context != null) {
+            Set<ObjectMapper> mappers = context.getRegistry().findByType(ObjectMapper.class);

Review Comment:
   There is findSingleByType which is easier to use
   org.apache.camel.spi.BeanRepository#findSingleByType



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] klease merged pull request #7544: CAMEL-17956: use registered ObjectMapper when parsing json.

Posted by GitBox <gi...@apache.org>.
klease merged PR #7544:
URL: https://github.com/apache/camel/pull/7544


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] github-actions[bot] commented on pull request #7544: CAMEL-17956: use registered ObjectMapper when parsing json.

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #7544:
URL: https://github.com/apache/camel/pull/7544#issuecomment-1117225796

   :heavy_check_mark: Finished component verification: 0 component(s) test failed out of **1 component(s) tested**


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org