camel-dev 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-2846) Java DSL - bean fluent builder should validate class type given
Date Thu, 01 Jul 2010 07:53:52 GMT

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

Claus Ibsen resolved CAMEL-2846.
--------------------------------

    Resolution: Fixed

trunk: 959549.

> Java DSL - bean fluent builder should validate class type given
> ---------------------------------------------------------------
>
>                 Key: CAMEL-2846
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2846
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.3.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.4.0
>
>
> You may by mistake use 
> {code}
> .bean("myCoolBean") 
> {code}
> Instead of
> {code}
> .beanRef("myCoolBean") 
> {code}
> To use a reference to a bean.
> The former will see this as a String class. We should add validation on {{.bean}} to
reject any standard Java types. eg all from {{java}}. So you can only pass in custom instances.

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


Mime
View raw message