摘要: JAVA的CALLBACK通过接口来实现。 例: 1.class A,class B 2.class A实现接口operate 3.class B拥有一个参数为operate接口类型的函数test(operate o) 4.class A运行时调用class B中test函数,以自身传入参数 5.class B已取得A,就可以随时回调A所实现的operate接口中的方法来源:http://topic.csdn.net/t/20020210/19/527607.html中最后一个人的回帖Callback机制通常用于两个类之间的协作,如下图A-----将自己作为参数--... 阅读全文
posted @ 2012-08-10 22:55 feiling 阅读(227) 评论(0) 推荐(0) 编辑
摘要: Ubuntu apache2对于电脑使用的玩家的常用软件,然后我就学习及深入的研究Ubuntu apache2,在这里和大家一起探讨Ubuntu apache2的使用方法,希望对大家有用。Ubuntu apache2配置1.Ubuntu apache2.conf 是主配置文件,httpd.conf 用户配置文件2.虚拟目录在 httpd.conf 中<VirtualHost*>DocumentRoot"路径" ServerName名称 <Direc×y"路径">allowfromallOptions+Indexes< 阅读全文
posted @ 2012-08-10 22:51 feiling 阅读(1174) 评论(0) 推荐(0) 编辑
摘要: refhttp://hi.baidu.com/luohuazju/blog/item/3ca66636ddabc2340a55a9a1.htmlubuntu下部署发布环境1、使用CVS取得代码(参考LINUX上配置)export CVSROOT=:pserver:lh@192.168.5.212:/megalh 是用户名/mega 是CVSROOTcvs login然后输入密码即可登陆注:root@kiko:/usr/tmp# cvs loginThe program 'cvs' can be found in the following packages:* cvsnt* c 阅读全文
posted @ 2012-08-10 22:50 feiling 阅读(910) 评论(0) 推荐(0) 编辑
摘要: 1./var/lib/mediawiki does not existapt-get install mediawiki安装在以下目录/usr/share/mediawiki/usr/share/doc/mediawiki/var/lib/mediawiki/etc/mediawiki2.在Ubuntu上安装Apache,每次重启,都会出现以下错误提示:Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerNamesudo vim /etc/apache2 阅读全文
posted @ 2012-08-10 22:49 feiling 阅读(326) 评论(0) 推荐(0) 编辑