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 2008/12/29 10:55:05 UTC

[jira] Created: (CAMEL-1206) ExpressionBuilder methods should be exposed in Spring DSL

ExpressionBuilder methods should be exposed in Spring DSL
---------------------------------------------------------

                 Key: CAMEL-1206
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1206
             Project: Apache Camel
          Issue Type: Sub-task
            Reporter: Claus Ibsen




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


[jira] Issue Comment Edited: (CAMEL-1206) ExpressionBuilder methods should be exposed in Spring DSL

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48363#action_48363 ] 

davsclaus edited comment on CAMEL-1206 at 12/29/08 1:56 AM:
--------------------------------------------------------------

See nabble:
http://www.nabble.com/Splitter-in-XML-td21196027s22882.html

We need the expression builder methods in the Spring DSL so end users can use it directly

Something like this:
{code:xml}
      <from uri="seda:a"/>
      <split>
        <expression>
            <conertBodyTo type="java.lang.String"/>
            <tokenize delimiter="\n"/>
        </expression>
        <to uri="seda:b"/>
      </split>
{code}

      was (Author: davsclaus):
    See nabble:
http://www.nabble.com/Splitter-in-XML-td21196027s22882.html

We need the expression builder methods in the Spring DSL so end users can use it directly

Something like this:
{code:xml}
      <from uri="seda:a"/>
      <split>
        <expression>
            <conertBodyTo type="java.lang.String"/>
            <tokenize delimiter="\n"/>
        </expression>
        <to uri="seda:b"/>
      </split>
{code:xml}
  
> ExpressionBuilder methods should be exposed in Spring DSL
> ---------------------------------------------------------
>
>                 Key: CAMEL-1206
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1206
>             Project: Apache Camel
>          Issue Type: Sub-task
>            Reporter: Claus Ibsen
>


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


[jira] Commented: (CAMEL-1206) ExpressionBuilder methods should be exposed in Spring DSL

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48363#action_48363 ] 

Claus Ibsen commented on CAMEL-1206:
------------------------------------

See nabble:
http://www.nabble.com/Splitter-in-XML-td21196027s22882.html

We need the expression builder methods in the Spring DSL so end users can use it directly

Something like this:
{code:xml}
      <from uri="seda:a"/>
      <split>
        <expression>
            <conertBodyTo type="java.lang.String"/>
            <tokenize delimiter="\n"/>
        </expression>
        <to uri="seda:b"/>
      </split>
{code:xml}

> ExpressionBuilder methods should be exposed in Spring DSL
> ---------------------------------------------------------
>
>                 Key: CAMEL-1206
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1206
>             Project: Apache Camel
>          Issue Type: Sub-task
>            Reporter: Claus Ibsen
>


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


[jira] Commented: (CAMEL-1206) ExpressionBuilder methods should be exposed in Spring DSL

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49815#action_49815 ] 

Claus Ibsen commented on CAMEL-1206:
------------------------------------

We got a tokenizer expression now, as otherwise the split in Spring DSL is kinda hard as you needed to invoke a method call or the likes.

However all the rest of the build methods is still missing. We could add some sort of soft expression EL with attributes to indicate common tasks

Or we can improve  the simple language to add expression capabilities to its existing predicates. 
{code}
<simple>${body} regex '[\\n|\\r]'</simple>
{code}

 So it will return an expression. However the example above is not to well as we now have a tokenizer expression in the Spring DSL.

> ExpressionBuilder methods should be exposed in Spring DSL
> ---------------------------------------------------------
>
>                 Key: CAMEL-1206
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1206
>             Project: Apache Camel
>          Issue Type: Sub-task
>            Reporter: Claus Ibsen
>


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


[jira] Issue Comment Edited: (CAMEL-1206) ExpressionBuilder methods should be exposed in Spring DSL

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48363#action_48363 ] 

davsclaus edited comment on CAMEL-1206 at 12/29/08 1:58 AM:
--------------------------------------------------------------

See nabble:
http://www.nabble.com/Splitter-in-XML-td21196027s22882.html

We need the expression builder methods in the Spring DSL so end users can use it directly

This Java DSL
{code:java}
from("seda:a").splitter(bodyAs(String.class).tokenize("\n")).to("seda:b");
{code}

To be done in Spring DSL something like this:
{code:xml}
      <from uri="seda:a"/>
      <split>
        <expression>
            <conertBodyTo type="java.lang.String"/>
            <tokenize delimiter="\n"/>
        </expression>
        <to uri="seda:b"/>
      </split>
{code}

      was (Author: davsclaus):
    See nabble:
http://www.nabble.com/Splitter-in-XML-td21196027s22882.html

We need the expression builder methods in the Spring DSL so end users can use it directly

Something like this:
{code:xml}
      <from uri="seda:a"/>
      <split>
        <expression>
            <conertBodyTo type="java.lang.String"/>
            <tokenize delimiter="\n"/>
        </expression>
        <to uri="seda:b"/>
      </split>
{code}
  
> ExpressionBuilder methods should be exposed in Spring DSL
> ---------------------------------------------------------
>
>                 Key: CAMEL-1206
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1206
>             Project: Apache Camel
>          Issue Type: Sub-task
>            Reporter: Claus Ibsen
>


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


[jira] Resolved: (CAMEL-1206) ExpressionBuilder methods should be exposed in Spring DSL

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-1206.
--------------------------------

    Resolution: Fixed
      Assignee: Claus Ibsen

I am closing this one as we got the tokenizer for the splitter that is mostly used as expression in the Spring DSL.

Otherwise there is method, xpath, simple etc. So we have plenty of expression help in Spring DSL.

> ExpressionBuilder methods should be exposed in Spring DSL
> ---------------------------------------------------------
>
>                 Key: CAMEL-1206
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1206
>             Project: Apache Camel
>          Issue Type: Sub-task
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>


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