目的定义创建对象的方法/接口,然后让子类来决定创建具体的类的对象。通过不同的类,使得实例化延迟至子类。特点必须引入继承,才能算是工厂方法模式。Found in
JDK APIjava.util.Calendar#getInstance()java.text.NumberFormat#getInsta...
分类:
其他好文 时间:
2014-07-22 23:00:16
阅读次数:
282
1: 新项目创建 1.下载最新Python,安装 2.解压引擎包
3.运行终端,切换到引擎目录(直接cd拖动文件夹到光标即可得到路径) 4.按照文档例子: $ cd cocos2d-x $ ./setup.py $
source FILE_TO_SAVE_S...
分类:
其他好文 时间:
2014-05-01 19:16:21
阅读次数:
319
Look under the start
memcahcedthreadingprocessmemcached multi-threaded mainly by instantiating
multiple libevent, are a main thread and n workers thre...
分类:
其他好文 时间:
2014-05-01 06:15:27
阅读次数:
356
This article mainly introduces the process of
Memcached, libevent structure of the main thread and worker thread based on the
processing of the connec...
分类:
其他好文 时间:
2014-05-01 02:44:07
阅读次数:
571
最近在进行两个项目开发时,需要使用WebService进行通信,在一个项目中使用axis2实现了,但在别一个项目中调用时,却发生异常,错误信息:namespace mismatch require http://webservice.transcoding.module.iefree.com found http://ws.apache.org/axis2/xsd产生错误的代码: public s...
分类:
其他好文 时间:
2014-04-30 22:33:39
阅读次数:
266
问题现象:
Eclipse按装maven插件之后,每次启动Eclipse都会弹出:
Eclipse is running in a JRE, but a JDK is required
Some Maven plugins may not work when importing projects or updating source folders.
问题原因:
从提示信息上看,就是...
分类:
系统相关 时间:
2014-04-30 22:11:38
阅读次数:
382
Android调试Source Not Found的错误原因及解决办法!...
分类:
移动开发 时间:
2014-04-29 13:48:21
阅读次数:
362
今天clone了一份代码,跑gradle test时出现failed,从report上来看是这个错误:IllegalArgumentException,具体如下:
java.lang.IllegalArgumentException
at org.objectweb.asm.ClassReader.(Unknown Source)
at org.objectweb.asm.ClassRead...
分类:
其他好文 时间:
2014-04-29 13:27:21
阅读次数:
359
代码来自于这里
https://code.google.com/p/stanford-cs193g-sp2010/source/browse/trunk/tutorials/sum_reduction.cu...
分类:
其他好文 时间:
2014-04-29 13:13:20
阅读次数:
324