264.10. 使用 Registry 中的属性
从 Camel 2.4
开始提供,例如,您可能想公开一个服务,该服务将属性返回为 java.util.Properties 对象。
然后,您可以设置 Properties 组件,如下所示:
<propertyPlaceholder id="properties" location="ref:myProperties"/>
<propertyPlaceholder id="properties" location="ref:myProperties"/>
其中 myProperties 是 OSGi 注册表中用于查询的 id。请注意,我们使用 ref: 前缀告知 Camel,它应该查找 Registry 的属性。