骆驼路线的继承

时间:2017-09-13 05:41:20

标签: apache inheritance routes apache-camel

我有一套微服务,我希望有一个共同的驼峰路由端点来提供请求

我的微服务也一样 1.学生 老师 3. HouseKeeping

所有这些微服务都有常见的CRUD方法和自己的自定义方法。

是否可以设计类似

的东西
class MasterRoute extends RouteBuilder{
  //Route for All CRUD methods
}

class Student extends RouteBuilder{
  //Inherited common routes
  from ( "overridden get route from the Master Route").log( "does it make sense?? ");

  from("a custom route specific to student").log( "does it make sense?? ")
}

0 个答案:

没有答案