摘要:
一、定义 原型模式(Prototype Pattern)的简单程度仅次于单例模式和迭代器模式。 Specify the kinds of objects to create using a prototypical instance, and create new objects by copyin 阅读全文
posted @ 2016-12-19 22:32
飞轩
阅读(235)
评论(0)
推荐(0)
摘要:
定义 代理模式(Proxy Pattern)是一个使用率非常高的模式,其定义如下: Provide a surrogate or placeholder for another object to control access to it.(为其他对象提供一种代理以控制对这个对象的访问。) 通用类图 阅读全文
posted @ 2016-12-19 17:23
飞轩
阅读(249)
评论(0)
推荐(0)
摘要:
一、定义 建造者模式(Builder Pattern)也叫生成器模式,其定义如下: Separate the construction fo a complex object from its representation so that the same comstruction process 阅读全文
posted @ 2016-12-19 15:54
飞轩
阅读(197)
评论(0)
推荐(0)
摘要:
一、定义 模板方法模式(Template Method Pattern)的定义如下: Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template Method le 阅读全文
posted @ 2016-12-19 13:54
飞轩
阅读(241)
评论(0)
推荐(0)
摘要:
一、定义 抽象工厂模式(Abstract Factory Pattern)是一种比较常见的模式,其定义如下: Provide an interface for creating families of related or dependent objects without specifying t 阅读全文
posted @ 2016-12-19 11:28
飞轩
阅读(216)
评论(0)
推荐(0)
摘要:
一、Class文件的装载过程 Class类型通常以文件的形式存在(当然,任何二进制流都可以是Class类型),只有被Java虚拟机装载的Class类型才能在程序中使用。系统状态Class类型可以分为加载、连接和初始化3个步骤。其中,连接又可分为验证、准备和解析3步。 1.1 类装载的条件 Class 阅读全文
posted @ 2016-12-19 10:36
飞轩
阅读(311)
评论(0)
推荐(0)

浙公网安备 33010602011771号