骡子:如何配置自定义组件工厂?

Mule: How to configure custom component factory?

我想要一个自定义工厂来创建我的 java 组件。 在 Mule 中可能吗?

使用Spring从自定义工厂实例化您的组件并引用创建的bean:

<component>
  <spring-object bean="yourBean"/>
<component>

参考:http://www.mulesoft.org/documentation/display/current/Using+Spring+Beans+as+Flow+Components