camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Matèrne (jhm) <apa...@materne.de>
Subject AW: MessageSupport
Date Tue, 27 Aug 2013 11:30:41 GMT
Ok, I just wondered ...

Jan

> -----Ursprüngliche Nachricht-----
> Von: Claus Ibsen [mailto:claus.ibsen@gmail.com]
> Gesendet: Dienstag, 27. August 2013 13:09
> An: dev
> Betreff: Re: MessageSupport
> 
> 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