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: CamelContext.hasComponent()
Date Wed, 30 Mar 2016 10:25:51 GMT
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
View raw message