[ 
https://issues.apache.org/jira/browse/CAMEL-8237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14282599#comment-14282599
 ] 

Claus Ibsen commented on CAMEL-8237:
------------------------------------

Honestly rest-dsl wasnt intended at start to use custom data format, but just 
jaxb / jackson-json etc.

But I think we can support custom under the rule, that it has a no-arg default 
constructor, then we use that to instantiate a new instance, and use the 
existing data format configuration for you to configure it. Then it should fit 
like the built in data formats.



> Regression: no longer possible to use a custom DataFormat bean in rest 
> configuration
> ------------------------------------------------------------------------------------
>
>                 Key: CAMEL-8237
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8237
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.14.1
>            Reporter: Benjamin Habegger
>
> Previously in version 2.14.0 it was possible to define a dataFormat as a 
> spring bean (as decribed in http://camel.apache.org/data-format.html) and set 
> the rest configuration to use this custom dataformat.
> Since version 2.14.1, defining such a dataformat and configuring rest to use 
> it  leads to : java.lang.IllegalArgumentException: JsonDataFormat name: json 
> must not be an existing bean instance from the registry



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to