camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernard Ligny <>
Subject Re: Conditional registration of routes (or route builders)
Date Thu, 16 Mar 2017 15:42:07 GMT
Hi Antonin

Very interesting (and elegant!) suggestion.
I like the fact that 
- I can leave untouched the existing code
- all the back/white-listing logic is concentrated into one single class
(=the extension)

I agree with you, a @Conditional annotation should be generic (ie not
restricted to properties).

In the meantime, I was thinking of a third solution. Use "profile" like in
Spring (again), ie:

Anyway, thanks a lot for the hint.



View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message