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

Claus Ibsen commented on CAMEL-3171:
------------------------------------

I cannot find out how to define a a custom type with restrictions

CXF has this file:
 http://cxf.apache.org/schemas/configuration/parameterized-types.xsd

Which they use for the types.

We could maybe handcraft this file and somehow find out how you can do an 
import in the generated XSD.

Then we need to map from those types to the real type. JAXB got 
javax.xml.bind.annotation.adapters.XmlAdapter but its a bit limited.
We need to hook into the namespace handler and inject a custom bean mapper 
which at runtime has access to the camel context and can resolve the properties.

> Allow property placeholders to be used anywhere in Spring XML (and blueprint 
> as well)
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3171
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3171
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-blueprint, camel-core, camel-spring
>    Affects Versions: 2.4.0
>            Reporter: Claus Ibsen
>             Fix For: 3.0.0
>
>
> When using Spring XML or blueprint there is a XSD defining what types the EIP 
> attributes uses.
> For example a timeout would be xs:int, and there could be xs:boolean etc.
> But you may want to use property placeholders so you can do
> {code}
> timeout="{{foo.myTimeout}}"
> {code}
> Where {{foo.myTimeout}} is the properties stuff.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to