You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2011/06/27 11:16:49 UTC

[jira] [Assigned] (CAMEL-4092) XML DSL having attributes that is a Class type should be a String type instead and use ClassResolver to lookup the class

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

Claus Ibsen reassigned CAMEL-4092:
----------------------------------

    Assignee: Claus Ibsen

> XML DSL having attributes that is a Class<?> type should be a String type instead and use ClassResolver to lookup the class
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4092
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4092
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-blueprint, camel-core, camel-spring
>    Affects Versions: 2.8.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.0
>
>
> In the XML DSL, some of the EIPs etc. have an attribute where you can configure a Class<?> type. For example <xpath> has a resultType attribute. 
> The XSD type is a xs:string.
> The problem is JAXB can only convert the xs:string to a Class<?> if the class can be loaded by JAXB/JDK. This may not work to well with custom types in OSGi / JBoss etc. 
> Instead we should use ClassResolver from CamelContext to lookup those classes, as it works in OSGI/blueprint/JBoss etc.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira