摘要: 一、 1.The Proxy Pattern provides a surrogate or placeholder for another object to control access to it. Your client object acts like it’s making remote 阅读全文
posted @ 2016-03-11 16:08 shamgod 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 一、使用步骤 1.generate stubs and skeletons:Run rmic on the remote implementation class 如:D:\Workspaces\MyEclipse10\HeadFirstDesignPattern\bin>rmic headfirs 阅读全文
posted @ 2016-03-11 14:16 shamgod 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 一、 1. 2.The State Pattern allows an object to alter its behavior when its internal state changes. The object will appear to change its class. 3.The St 阅读全文
posted @ 2016-03-11 11:26 shamgod 阅读(720) 评论(0) 推荐(0) 编辑
haha