本文整理汇总了Java中org.apache.camel.model.RouteContextRefDefinition类的典型用法代码示例。如果您正苦于以下问题:Java RouteContextRefDefinition类的具体用法?Java RouteContextRefDefinition怎么用?Java RouteContextRefDefinition使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RouteContextRefDefinition类属于org.apache.camel.model包,在下文中一共展示了RouteContextRefDefinition类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initRouteRefs
import org.apache.camel.model.RouteContextRefDefinition; //导入依赖的package包/类
protected void initRouteRefs() throws Exception {
// add route refs to existing routes
if (getRouteRefs() != null) {
for (RouteContextRefDefinition ref : getRouteRefs()) {
List<RouteDefinition> defs = ref.lookupRoutes(getContext());
for (RouteDefinition def : defs) {
LOG.debug("Adding route from {} -> {}", ref, def);
// add in top as they are most likely to be common/shared
// which you may want to start first
getRoutes().add(0, def);
}
}
}
}
示例2: getRouteRefs
import org.apache.camel.model.RouteContextRefDefinition; //导入依赖的package包/类
public List<RouteContextRefDefinition> getRouteRefs() {
return routeRefs;
}
示例3: setRouteRefs
import org.apache.camel.model.RouteContextRefDefinition; //导入依赖的package包/类
public void setRouteRefs(List<RouteContextRefDefinition> routeRefs) {
this.routeRefs = routeRefs;
}
示例4: getRouteRefs
import org.apache.camel.model.RouteContextRefDefinition; //导入依赖的package包/类
@Override
public List<RouteContextRefDefinition> getRouteRefs() {
return _factoryBean.getRouteRefs();
}
示例5: getRouteRefs
import org.apache.camel.model.RouteContextRefDefinition; //导入依赖的package包/类
public abstract List<RouteContextRefDefinition> getRouteRefs();