2010年7月2日星期五

search test





Loading...

2010年1月18日星期一

2008年4月16日星期三

Log4j Viewer

一个用于查看log4j结果的很方便的工具:
http://logging.apache.org/chainsaw/download.html
chainsaw

2008年1月25日星期五

通过类名判断一个对象是否为其实例

public static boolean instanceOf(Object a, String className)
throws ClassNotFoundException {
boolean result = false;
Class clazz = LangUtil.class.getClassLoader().loadClass(className);
try {
clazz.cast(a);
result = true;
} catch (ClassCastException e) {

}
return result;
}

2007年11月30日星期五

JAXB Tips

1. JAXB Marshaller 属性
Marshaller m = JaxbUtil.getMarshaller();
m.setProperty(Marshaller.JAXB_FRAGMENT, true);
可以输出XML片断,即不会输出“”,也不需要为根元素

2007年11月8日星期四

论CORBA的起落

一篇很好的文章,介绍CORBA的历史,分析了CORBA的起落
http://www.acmqueue.com/modules.php?name=Content&pa=showpage&pid=396