摘要:
简介: 简单工厂模式(Simple Factory)又称为静态工厂方法(Static Factory Method模式,不属于23种GOF设计模式之一。 专门创建一个工厂对象来负责创建出哪一个产品类的实例,被创建的产品类往往具有相同的父类或接口。属于类的创建型模式,通常根据一个条件(参数)来返回不同的类的实例。简单工厂模式,主要由三部分组成: 工厂角色(Creator)整个简单工厂模式的核心,... 阅读全文
摘要:
1CodeSmith的简介官方说明:CodeSmith is a software development tool to help you get your job done faster. Technically speaking it is a template driven source code generator that automates the creation of commo... 阅读全文