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
            Priority: Minor
             Fix For: Future


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

        

Reply via email to