from("direct:myRoute1")
.bean(new DemoRoute(), "test(Demo,xxx)")
.end();
from("direct:myRoute2")
.bean(new DemoRoute(), "test(Demo,xxx)")
.end();
public interface Shape
@Component
class Circle implements Shape{
}
@Component
class Square implements Shape{}
I want to inject the Shape implementation in route test(Demo,xxx)
- Can setHeader() help to add a Shape implementation in route.
- Can there be an alternative apart from setting header in camel route as it has its pros and cons