1.工厂模式:http://www.cnblogs.com/poissonnotes/archive/2010/12/01/1893871.html 2.抽象工厂模式:http://blog.csdn.net/zhengzhb/article/details/7359385