- 博客(24)
- 资源 (7)
- 收藏
- 关注
原创 commons.logging1.1.1源代码研究(1)-- 组织结构
http://commons.apache.org/logging/commons-logging-1.0.3/usersguide.html 一、介绍 commons logging使应用程序不用绑定到特定的日志实现上,比如:可以使用Log4J或JDK14Logger等。以下是Apache commons的官方描述: The Logging Wrapper Librar
2009-08-31 21:23:00 1355
原创 Tomcat ClassLoader研究
http://tomcat.apache.org/tomcat-4.1-doc/class-loader-howto.html Tomcat的ClassLoader层次结构: Bootstrap | System |
2009-08-30 16:23:00 2422
转载 Java ClassLoader深入研究
参考文章:http://blog.csdn.net/lovingprince/archive/2009/06/03/4238695.aspx http://www.yesky.com/243/1840743.shtml Java为了提供平台无关性,在操作系统之上加入了一层JVM来隔离操作系统特定实现,使所编写的java代码在任何平台都能运行,但是JVM是特定于某一操作系统
2009-08-28 15:48:00 8553 3
原创 关于Java的clone()
相关要点:1.必须实现Cloneable接口,这个接口只是一个标识;如果不实现,调用了clone(),运行时会报CloneNotSupportedException2.clone是Object的方法,标识为protected,子类必须重写,标识符可改为public3.对于jdk1.5,clone可以返回相应类的类型或Object;对于1.4,只能返回Object
2009-08-27 21:51:00 883
原创 Java设计模式(11) —— 原型
Prototype IntentSpecify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.How toPrototype Managerregister prototypesP
2009-08-27 20:56:00 650
原创 Java设计模式(10) —— 状态
State IntentAllow an object to alter its behavior when its internal state changes.How to1.Context delegates state-specific requests to the current ConcreteState object.2.Clients ca
2009-08-27 19:09:00 779
原创 Java设计模式(9) —— 适配器
Adapter IntentConvert the interface of a class into another interface clients expect. Adapter lets classes work together that couldnt otherwise because of incompatible interfaces.You
2009-08-26 17:20:00 616
原创 Java设计模式(8) —— 抽象工厂
Abstract Factory 英文简单描述IntentProvide an interface for creating families of related or dependent objects without specifying their concrete classes.How toAbstractFactorydeclares an
2009-08-25 18:23:00 664
原创 Java设计模式(7)—— 装饰器
Decorator 英文简单描述IntentAttach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.How toThe
2009-08-21 18:13:00 855
原创 Java设计模式(6) -- 组合
Composite 英文简单描述IntentYou want to represent part-whole hierarchies of objects. Composite lets clients treat individual objects and compositions of objects uniformly.How toCompone
2009-08-19 12:01:00 636
原创 Java设计模式(5) -- 外观
Facade 英文简单描述IntentProvide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.You want to provide
2009-08-19 10:44:00 612
转载 JTree.updateUI() during TreeSelectionEvent.valueChanged() causes Null Pointer
Bug链接:http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5089562 ERROR MESSAGES/STACK TRACES THAT OCCUR :java.lang.NullPointerException at javax.swing.plaf.basic.BasicTreeUI.complet
2009-08-19 09:46:00 1978
原创 Java设计模式(4) -- 模板方法
Template Method 英文简要描述IntentDefine the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template Method lets subclasses redefine certain steps of an algorith
2009-08-18 14:00:00 782
原创 Java设计模式(3) -- 策略
Strategy 英文简单描述IntentDefine a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm change dynamically.How toStrategydeclar
2009-08-18 12:41:00 621
原创 Java设计模式(2) -- 工厂方法
Factory Method 英文简单描述IntentDefine an interface for creating an object, but let subclasses decide which class to instantiate. Factory methods eliminate the need to bind application-specif
2009-08-17 21:00:00 630
原创 Java设计模式(1) -- 单例
Singleton 英文简单描述IntentEnsure a class only has one instance, and provide a global point for accessing to it.How toWe make it a Singleton class in Java by adding a static getInstance o
2009-08-17 19:48:00 695
原创 jnlp下载资源中有未签名文件
下载资源中有未签名文件解决办法:1)确保所有的jar包都进行过签名。2)确保整个资源中,没有中文的命名。签名工具不支持中文命名的文件名,所以未签到名。
2009-08-13 08:20:00 4141
原创 PHP 题二
$a = "abc";$c = count($a);echo $c;?>结果为1(如果将一个值转换为数组,将得到一个仅有一个元素的数组) function getVal($i) { $i = $i * 2; } $i = 2; $result = getVal($i);?>$result = ?
2009-08-07 18:41:00 604
原创 php全局变量范围
$a = 1;include b.inc;?>这里变量 $a 将会在包含文件 b.inc 中生效。但是,在用户自定义函数中,一个局部函数范围将被引入。任何用于函数内部的变量按缺省情况将被限制在局部函数范围内。$a = 1; /* global scope */function Test
2009-08-06 23:59:00 1106
原创 ls实现列文件按时间排序
1) ls -lt 时间最近的在前面2) ls -ltr 时间从前到后3) 利用sort ls -l | sort +7 (日期为第8列) 时间从前到后 ls -l | sort -r +7 时间最近的在前面
2009-08-06 23:44:00 132764 1
原创 PHP引用 题一
$arr = array(a,b,c); foreach($arr as $key=>$val){ $val=&$arr[$key]; print_r($arr); }?> 执行结果为:Array 第一次循环,使$val是$arr[0]的引用
2009-08-06 23:35:00 856
原创 Can't locate CPAN.pm in @INC的解决办法
这个是因为没有安装CPAN模块所致 从此处下载CPAN,http://search.cpan.org/~andk/CPAN-1.9402/lib/CPAN.pm tar -xzvf CPAN-1.9402.tar.gzcd CPAN-1.9402perl Makefile.PLmakemake install 进入CPAN的shell模式perl -MC
2009-08-06 01:09:00 8357
原创 安装cpan中perl模块的方法
第一种方法:1.下载相应的模块module.tar.gz 2.解压 tar -xzvf module.tar.gz cd module 3.构建 perl Makefile.PL make make test 4.安装 make install 更多的见: http://www.cpan.org/modu
2009-08-06 00:21:00 1016
转载 windows无法配置此无线连接
1.查看无线网卡的驱动是否安装正确,查看方法:右键“我的电脑” 单击 “属性” -> 硬件 -> 设备管理器 -> 网络适配器 -> 找到无线网卡,如果驱动不正确,一般会有黄色问号提示,这个时候就需要你找到原配光盘来重新驱动。2. 无线网卡没有打开,多数笔记本的无线网卡都会有一个物理开关,设置在笔记本后面或侧面,找到后确认打开,“on”为开,“off”为关。那
2009-08-04 09:40:00 2013
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人