2013年8月28日
摘要: 1.HelloWorldpackage reflect.proxy;public interface HelloWorld { void print();}2.HelloWorldImplpackage reflect.proxy;public class HelloWorldImpl implements HelloWorld{ @Override public void print() { // TODO Auto-generated method stub System.out.println("hello world!"); } ... 阅读全文
posted @ 2013-08-28 15:35 爱生活的夜 阅读(138) 评论(0) 推荐(0) 编辑
摘要: package reflect;import java.lang.reflect.Field;import java.lang.reflect.InvocationTargetException;import java.lang.reflect.Method;public class InvokeTest { public static Object copy(Object object) throws SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, I... 阅读全文
posted @ 2013-08-28 14:35 爱生活的夜 阅读(180) 评论(0) 推荐(0) 编辑