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] [Resolved] (CAMEL-9380) Method call expression - Validate bean name for mistake
Date Sat, 05 Dec 2015 10:10:11 GMT

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

Claus Ibsen resolved CAMEL-9380.
--------------------------------
    Resolution: Fixed

> Method call expression - Validate bean name for mistake
> -------------------------------------------------------
>
>                 Key: CAMEL-9380
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9380
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.17.0
>
>
> You may by mistake use bean: or ref: as prefix when using the method call expression.
> For example 
> {code}
> .to("bean:foo")
> {code}
> vs
> {code}
> method("foo")
> {code}
> And this is not correct
> {code}
> method("bean:foo")
> method("ref:foo")
> {code}
> We could maybe in the latter case be lenient and allow using bean: and ref: as prefix
as its used in endpoints etc so people may mistake and use those in the bean id in the method
call expression



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

Mime
View raw message