You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/11/03 07:51:00 UTC

[jira] [Updated] (CAMEL-15745) Rest DSL input/output type class

     [ https://issues.apache.org/jira/browse/CAMEL-15745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-15745:
--------------------------------
    Component/s: osgi

> Rest DSL input/output type class
> --------------------------------
>
>                 Key: CAMEL-15745
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15745
>             Project: Camel
>          Issue Type: Improvement
>          Components: osgi, rest
>    Affects Versions: 3.6.0
>            Reporter: Ioannis Sarantidis
>            Priority: Minor
>
> Currently RestDefinition methods:
>  * _type(Class<?> classType)_
>  * _outType(Class<?> classType)_
> use the methods _setType, setOutType_ from _VerbDefinition_ that accept a string instead of their variants that accept the class or should at least use both variants if they are really needed.
> The reason for opening this that setting the class name only in verb definition, in my OSGI application, causes ClassNotFoundException  in _RestBindingReifier#setupJson_.
> As a workaround at the moment, after configuring the RestDefinition object I retrieve the VerbDefinitions in it and set the _typeClass_ and _outTypeClass_ manually there.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)