camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Green <james.mk.gr...@gmail.com>
Subject Re: CamelContext.hasComponent()
Date Wed, 30 Mar 2016 14:59:09 GMT
I'm looking at code that conditionally adds activemq if configuration is
provided at runtime, hence my use as a consumer.

On 30 March 2016 at 11:25, Claus Ibsen <claus.ibsen@gmail.com> wrote:

> Just to add a bit context.
>
> This method is less intended for Camel end users, but more for
> component developers / camel itself.
>
>
> On Wed, Mar 30, 2016 at 12:00 PM, Claus Ibsen <claus.ibsen@gmail.com>
> wrote:
> > No this is by design
> >
> > On Wed, Mar 30, 2016 at 11:56 AM, James Green <james.mk.green@gmail.com>
> wrote:
> >> I was expecting this to return boolean, but it returns a Component if
> >> present or null otherwise.
> >>
> >> This feels counter-intuitive and horrible to code against. Are there
> plans
> >> to this this?
> >>
> >> Thanks,
> >>
> >> James
> >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > http://davsclaus.com @davsclaus
> > Camel in Action 2: https://www.manning.com/ibsen2
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message