camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7841) Allow SpEL inside Camel URIs
Date Sat, 21 Mar 2015 06:51:38 GMT

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

Claus Ibsen commented on CAMEL-7841:
------------------------------------

Any update on this?

> Allow SpEL inside Camel URIs
> ----------------------------
>
>                 Key: CAMEL-7841
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7841
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-spring
>    Affects Versions: 2.14.0
>            Reporter: Marc Carter
>             Fix For: Future
>
>
> The test for {{BridgePropertyPlaceholderConfigurer}} shows a very unrealistic example
of putting some SpEL into a camel variable. This requires pre-declaring every such spel expression
as you instantiate the bridge. Essentaily the SpEL is only evaluated when directly in the
Spring context refresh.
> This bridge class can be ugraded to parse SpEL expressions dynamically as Camel requests
properties allowing the usecases like:
> {code}
> .from("direct:dostuff")
> .wireTap( "file:#{@runtime.dataPath}?fileName=${date:now:yyyyMMdd}.txt" )
> {code}
> In today's code the first part of URI cannot be paramterised.
> I'll submit a PR via github with my solution and example tests.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message