128.3. Spring Boot Auto-Configuration

组件支持 4 个选项,如下所示。

名称描述默认类型

camel.component.guava-eventbus.enabled

启用 guava-eventbus 组件

true

布尔值

camel.component.guava-eventbus.event-bus

使用给定的 Guava EventBus 实例。选项是一个 com.google.common.eventbus.EventBus 类型。

 

字符串

camel.component.guava-eventbus.listener-interface

带有带有 Subscribe 注解的方法的接口。动态代理将通过接口创建,以便其注册为 EventBus 侦听器。在创建多事件监听器并正确处理 DeadEvent 时特别有用。这个选项不能与 eventClass 选项一同使用。

 

camel.component.guava-eventbus.resolve-property-placeholders

启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。

true

布尔值