209.4.4. KuraRouter activator 콜백
Kura 라우터는 Camel 라우터의 작동 방식을 사용자 지정하는 데 사용할 수 있는 라이프사이클 콜백과 함께 제공됩니다. 예를 들어 이전이 시작되기 직전과 관련된 CamelContext 인스턴스를 구성하려면 KuraRouter 클래스의 beforeStart 메서드를 재정의합니다.
public class MyKuraRouter extends KuraRouter {
...
protected void beforeStart(CamelContext camelContext) {
OsgiDefaultCamelContext osgiContext = (OsgiCamelContext) camelContext;
osgiContext.setName("NameOfTheRouter");
}
}