263.13. Simple 言語の例

Simple 言語は、プロパティープレースホルダーの使用もサポートするようになりました。たとえば、以下のルートで:

// properties
cheese.quote=Camel rocks

// route
from("direct:start")
    .transform().simple("Hi ${body} do you think ${properties:cheese.quote}?");

たとえば、Simple 言語でロケーションを指定することもできます。

// bar.properties
bar.quote=Beer tastes good

// route
from("direct:start")
    .transform().simple("Hi ${body}. ${properties:com/mycompany/bar.properties:bar.quote}.");