单例模式和工厂模式 单例模式 http://cantellow.iteye.com/blog/838473 工厂模式 http://blog.csdn.net/jason0539/article/details/23020989