Camel-Core 分析 (1)

<p>在Camel中定义一个路由最基本的元素有Context,Component,endPoint 。</p> <p>在下图中能够看到Camel的顶层接口为Service. Camel的组件(好比Route,Component,Component,Endpoint,)都是以服务的形式装载.CamelContext自己也是一个服务。</p> <p>能够看出Service是Camel最基本的接口。</p> <p>Service有两个子接口:可中止的接口ShutdownableServce和可暂停的接口SuspendableService。</p> <p>StatefulService接口继承上面两个接口,同时提供了状态查询的方法。</p> <p>ServiceSupport做为一个抽象类,实现了StatefulService的接口,同时提供了抽象方法doStart,doStop.</p> <p>DefaultRoute,DefaultComponent,DefaultEndPoint,Default。。。。。都继承了ServiceSupport类,同时实现了本身对应的接口。</p> <p>&#160;</p> <p><a href="http://static.oschina.net/uploads/img/201306/09163743_E7kG.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201306/09163744_WvJU.png" width="939" height="705" /></a></p>.net

相关文章
相关标签/搜索