camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: MessageSupport
Date Tue, 27 Aug 2013 11:09:03 GMT
No its fine as is, according to the javadoc. Its only intended to be
overridden for special use-cases.

On Tue, Aug 27, 2013 at 1:05 PM, Jan Matèrne (jhm) <apache@materne.de> wrote:
> package org.apache.camel.impl;
>
> public abstract class MessageSupport implements Message {
>
>
>
>     /**
>
>      * A factory method to allow a provider to lazily create the message
> body
>
>      * for inbound messages from other sources
>
>      *
>
>      * @return the value of the message body or null if there is no value
>
>      *         available
>
>      */
>
>     protected Object createBody() {
>
>         return null;
>
>     }
>
>
>
>
>
> Should this method be abstract?
>
> Constantly returning null doesnt seems to be good to me ....
>
>
>
>
>
> Jan
>



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message