camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-8630) Allow simple language to call static methods.
Date Tue, 14 Apr 2015 05:59:12 GMT

    [ 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)

Mime
View raw message