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 2021/06/28 08:03:00 UTC

[jira] [Commented] (CAMEL-16760) camel-core - Dataformat models with Class should use the loaded class directly

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

Claus Ibsen commented on CAMEL-16760:
-------------------------------------

Okay found out we can do as TidyDataFormat does where it uses Class<?> directly in the impl (no string setters) but the model XmlAttribute points to the XmlTransient by overriding the name, and then use or in the reifier.

This looks like a better solution than have two attributes (string and class type)

> camel-core - Dataformat models with Class<?> should use the loaded class directly
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-16760
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16760
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.12.0
>
>
> Currently the EIP model will store Class<?> as transient and use the FQN class name as text that the dataformat then need to load afterwards.
> But due to complex classloading in camel-k and other runtimes it would be better to use the Class<?> directly.



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