이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 27. Ref
Overview 링크 복사링크가 클립보드에 복사되었습니다!
The Ref expression language is really just a way to look up a custom Expression from the Registry. This is particular convenient to use in the XML DSL.
The Ref language is part of camel-core
.
Static import 링크 복사링크가 클립보드에 복사되었습니다!
To use the Ref language in your Java application code, include the following import statement in your Java source files:
import static org.apache.camel.language.ref.RefLanguage.ref;
import static org.apache.camel.language.ref.RefLanguage.ref;
XML example 링크 복사링크가 클립보드에 복사되었습니다!
For example, the splitter pattern can reference a custom expression using the Ref language, as follows:
Java example 링크 복사링크가 클립보드에 복사되었습니다!
The preceding route can also be implemented in the Java DSL, as follows:
from("seda:a") .split().ref("myExpression") .to("seda:b");
from("seda:a")
.split().ref("myExpression")
.to("seda:b");