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/09/03 13:38:09 UTC

[jira] [Resolved] (CAMEL-4403) camel-scala - Expressions is favored over Predicates in the DSL and languages

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

Claus Ibsen resolved CAMEL-4403.
--------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: Future)
                   2.9.0
         Assignee: Claus Ibsen

Languages used in the DSL is now a LanguageFunction which supports both Expression/Predicate, which allows it to be used as intended in the Camel routes.

> camel-scala - Expressions is favored over Predicates in the DSL and languages
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-4403
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4403
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-scala
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.0
>
>
> The camel-scala DSL crates Expression for languages used in the DSL, regardless if they are to be used as Prediacates.
> The Java DSL is capable of creating a Predicate instead. For example in a Content Based Router, InterceptFrom -> When etc.
> We ought to look into being able to supply Predicate when a predicate is really to be used.
> See ScalaPredicate
> This affects for example the improved simple language which operates different accordingly to whether its a predicate or expression being evaluated. So in camel-scala this mode will always be Expression, despite a Predicate was to be used.

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