Description
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.
Attachments
Attachments
Issue Links
- relates to
-
CAMEL-15199 RestDefinition relies on Class.getCanonicalName instead of Class.getName for in/out types
- Resolved