camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Difference between method attribute 'bean' and 'ref'
Date Tue, 28 May 2013 11:47:38 GMT
Hi

Its the same. bean was the old attribute, which has been deprecated.
You should favor using ref

@XmlRootElement(name = "method")
@XmlAccessorType(XmlAccessType.FIELD)
public class MethodCallExpression extends ExpressionDefinition {
    @XmlAttribute
    @Deprecated
    private String bean;
    @XmlAttribute
    private String ref;


On Tue, May 28, 2013 at 12:41 PM, AlanFoster <alan@alanfoster.me> wrote:
> Hi,
>
> I was just wondering what the differences between the 'ref' and 'bean'
> attribute are within the method XML type.
>
> For example
>
>     <method ref="beanName" method="methodName" />
>
> and
>
>     <method bean="beanName" method="methodName" />
>
> Thanks,
> Alan
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Difference-between-method-attribute-bean-and-ref-tp5733348.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message