309.4. 外部リソースからスクリプトを読み込み
Camel 2.11 から利用可能
スクリプトを外部化して、"classpath:"、"file:"、または "http:" などのリソースから Camel に読み込むことができます。
これは、"resource:scheme:location" の構文を使用して行われます。たとえば、クラスパス上のファイルを参照するには、以下を実行します。
.setHeader("myHeader").spel("resource:classpath:myspel.txt")
.setHeader("myHeader").spel("resource:classpath:myspel.txt")