曾梦垚

导航

上一页 1 2 3 4 5 6 7 8 ··· 12 下一页

2017年1月13日

适配器模式

摘要: 适配器模式的定义 适配器模式(Adapter Pattern)的定义如下: Convert the interface of a class into another interface clients expect.Adapter lets classes work together that c 阅读全文

posted @ 2017-01-13 23:22 曾梦垚 阅读(119) 评论(0) 推荐(0) 编辑

2017年1月12日

策略模式

摘要: 策略模式的定义 策略模式(Strategy Pattern)是一种比较简单的模式,也叫做政策模式(Policy Pattern)。其定义如下: Define a family of algorithms,encapsulate each one,and make them interchangeab 阅读全文

posted @ 2017-01-12 23:26 曾梦垚 阅读(173) 评论(0) 推荐(0) 编辑

2017年1月11日

装饰模式

摘要: ● Component抽象构件 Component是一个接口或者是抽象类,就是定义我们最核心的对象,也就是最原始的对 象 注意 在装饰模式中,必然有一个最基本、最核心、最原始的接口或抽象类充当 Component抽象构件。 ● ConcreteComponent 具体构件 ConcreteCompo 阅读全文

posted @ 2017-01-11 23:35 曾梦垚 阅读(95) 评论(0) 推荐(0) 编辑

2017年1月10日

责任链模式

摘要: 责任链模式定义如下: Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request.Chain the receiving ob 阅读全文

posted @ 2017-01-10 22:50 曾梦垚 阅读(113) 评论(0) 推荐(0) 编辑

2017年1月9日

命令模式

摘要: 命令模式的定义 命令模式是一个高内聚的模式,其定义为:Encapsulate a request as an object,thereby letting you parameterize clients with different requests,queue or log requests,a 阅读全文

posted @ 2017-01-09 23:40 曾梦垚 阅读(114) 评论(0) 推荐(0) 编辑

2017年1月8日

中介者模式

摘要: 中介者模式的定义 中介者模式的定义为:Define an object that encapsulates how a set of objects interact.Mediator promotes loose coupling by keeping objects from referring 阅读全文

posted @ 2017-01-08 23:27 曾梦垚 阅读(123) 评论(0) 推荐(0) 编辑

2017年1月7日

C3P0连接池

摘要: 1 导入c3p0-0.9.1.2.jar 连接池包 2在SRC 下面建立文件c3p0-config.xml ,名称必须是 c3p0-config.xml <?xml version="1.0" encoding="UTF-8" ?> <c3p0-config> <default-config> <! 阅读全文

posted @ 2017-01-07 23:40 曾梦垚 阅读(132) 评论(0) 推荐(0) 编辑

2017年1月6日

原型模式

摘要: 原型模式的定义 原型模式(Prototype Pattern)的简单程度仅次于单例模式和迭代器模式。正是由于简 单,使用的场景才非常地多,其定义如下: Specify the kinds of objects to create using a prototypical instance,and c 阅读全文

posted @ 2017-01-06 23:43 曾梦垚 阅读(110) 评论(0) 推荐(0) 编辑

2017年1月5日

代理模式

摘要: 代理模式的定义 代理模式(Proxy Pattern)是一个使用率非常高的模式,其定义如下: Provide a surrogate or placeholder for another object to control access to it.(为其他对象提供 一种代理以控制对这个对象的访问。 阅读全文

posted @ 2017-01-05 23:34 曾梦垚 阅读(104) 评论(0) 推荐(0) 编辑

2017年1月4日

建造者模式

摘要: 建造者模式的定义 建造者模式(Builder Pattern)也叫做生成器模式,其定义如下: Separate the construction of a complex object from its representation so that the same construction pro 阅读全文

posted @ 2017-01-04 23:19 曾梦垚 阅读(104) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 12 下一页