Angelo Lee's Blog
This is my kingdom .If i don't fight for it ,who will ?
摘要: jdk的动态代理是基于接口的,必须实现了某一个或多个任意接口才可以被代理,并且只有这些接口中的方法会被代理。看了一下jdk带的动态代理api,发现没有例子实在是很容易走弯路,所以这里写一个加法器的简单示例。view sourceprint?1// Adder.java23package test;45public interface Adder {6int add(int a, int b);7}view sourceprint?01// AdderImpl.java0203package test;0405public class AdderImpl implements Adder {06 阅读全文
posted @ 2010-05-31 10:27 Angelo Lee 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Java命令行工具总结 1、命令C/Documents and Settings/Zianed>ls ‘%JAVA_HOME%’/binHtmlConverter.exe javap.exe jstatd.exe rmid.exeappletviewer.exe javaw.exe jvisualvm.exe rmiregistry.exeapt.exe javaws.exe keytool.exe schemagen.exebeanreg.dll jconsole.exe kinit.exe serialver.exeextcheck.exe jdb.exe klist.exe ser 阅读全文
posted @ 2010-05-31 09:44 Angelo Lee 阅读(486) 评论(0) 推荐(0) 编辑