You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Taariq Levack (JIRA)" <ji...@apache.org> on 2011/09/15 06:50:08 UTC

[jira] [Updated] (CAMEL-4028) Simple language - Allow to configure prefix and suffix tokens

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

Taariq Levack updated CAMEL-4028:
---------------------------------

    Attachment: CAMEL-4028_Simple_language_Spring_Config.patch

Now that Simple has had a complete overhaul, we don't need lots of API changes and new interfaces to allow custom tokens anymore, so I've kept only the Spring test and made some changes for this possible fix to configure SimpleLanguage using Spring.

I added some constructors to SimpleLanguage which the test uses to define a simple bean, Camel uses the Spring bean for language if it exists.

Can make it more flexible with more constructors if needed, since we've got var args for new function start and end tokens, and maybe you only want to change one of them, or maybe you want multiple new tokens.

> Simple language - Allow to configure prefix and suffix tokens
> -------------------------------------------------------------
>
>                 Key: CAMEL-4028
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4028
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.7.0
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.0, Future
>
>         Attachments: CAMEL-4028_Simple_language_-_Allow_to_configure_prefix_and_suffix_tokens_4.patch, CAMEL-4028_Simple_language_Spring_Config.patch
>
>
> The simple language uses ${ } tokens by default. However groovy uses those for its GString. So we have a clash. Even if you use $simple{ } instead in Groovy then you have a clash.
> So we should add support for configuring the tokens so you can remedy the GString clash in Groovy.

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