Hi everyone!

I'm using Camel version 2.18.2 with Spring as IoC and dependency injection
platform. According the documentation my AppConfig Spring class (annotated
with @Configuration) extends the CamelConfiguration class.

Some of my routes are being building dinamically with constructor arguments.
To do this, I need to create this routes lazily passing the constructor
arguments and adds it into CamelContext by myself.

The class CamelConfiguration adds all instances of RouteBuilder into a list
and instantiates the bean RoutesCollector which adds all routes into
CamelContext, although my component (route) was annotated with @Lazy.

Here is my problem! The CamelConfiguration do not permit me choice the
routes I want or not add into CamelContext by default. That way I can't have
routes with parameters passed as constructor arguments, only components with
default constructors.

I suggest the CamelConfiguration class consider the @Lazy annotation to add
or not the route into CamelContext.

Is it possible?

Regards!

Luciano Nunes




--
View this message in context: 
http://camel.465427.n5.nabble.com/CamelConfiguration-wires-all-routes-by-default-tp5793727.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to