摘要: 客户端由两种:生产者和消费者 1. 生产者 先看一下生产者的构造方法: 很多代码是读取配置文件,但红色部分才是主要: 调用Sender线程的run方法 调用NetworkClient的send方法 selector调用channel来发送: 调用channel的send方法: 这里Transport 阅读全文
posted @ 2016-08-09 11:08 一天不进步,就是退步 阅读(3115) 评论(0) 推荐(0)
摘要: 在一个spring xml配置文件中,NamespaceHandler是DefaultBeanDefinitionDocumentReader用来处理自定义命名空间的基础接口。其层次结构如下: <context>为开头的标签统一在ContextNamespaceHandler中进行解析,Contex 阅读全文
posted @ 2016-08-09 08:41 一天不进步,就是退步 阅读(4343) 评论(0) 推荐(0)
摘要: 原文地址:http://www.summa.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring What could be simpler than property files? In an enterprise a 阅读全文
posted @ 2016-08-09 08:36 一天不进步,就是退步 阅读(480) 评论(0) 推荐(0)