Red Hat Training

A Red Hat training course is available for Red Hat Fuse

60.3. 使用

クラス コンポーネントを Bean コンポーネントとして使用するだけで、完全修飾クラス名を指定します。
たとえば MyFooBean を使用するには、以下のようにする必要があります。

    from("direct:start").to("class:org.apache.camel.component.bean.MyFooBean").to("mock:result");

MyFooBean で呼び出すメソッド(例: hello )を指定することもできます。

    from("direct:start").to("class:org.apache.camel.component.bean.MyFooBean?method=hello").to("mock:result");