59.3. 自动配置的 Camel 原语
Camel CDI 为常见 Camel 原语提供 Bean,可在任何 CDI Bean 中注入,例如:
@Inject
@Uri("direct:inbound")
ProducerTemplate producerTemplate;
@Inject
@Uri("direct:inbound")
FluentProducerTemplate fluentProducerTemplate;
@Inject
MockEndpoint outbound; // URI defaults to the member name, i.e. mock:outbound
@Inject
@Uri("direct:inbound")
Endpoint endpoint;
@Inject
TypeConverter converter;