You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/04/14 07:59:12 UTC

[jira] [Commented] (CAMEL-8630) Allow simple language to call static methods.

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

Claus Ibsen commented on CAMEL-8630:
------------------------------------

You can use the bean function for that - something a long the lines of "${bean:java.lang.System?method=currentTimeMillis}". But its really not in the scope of simple to do this. If you want to add two long values then use groovy / javascript or some other programming language.

> Allow simple language to call static methods.
> ---------------------------------------------
>
>                 Key: CAMEL-8630
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8630
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.15.1
>            Reporter: Aaron Whiteside
>            Priority: Minor
>
> Allow simple language to call static methods.
> For example:
> {code:java}
> simple("System.currentTimeMillis() + ${header['OFFSET']}");
> {code}



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