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
            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

Reply via email to