摘要: 原文地址:http://tutorials.jenkov.com/java-reflection/constructors.html===================================================================================================== 使用Java反射,你可以在运行时检查类的构造函数和实例化对象。这是通过Java类java.lang.reflect.Constructor做的。本文将会更详细的介绍Java中的Constructor对象。下面是所涵盖的主题列表:Obtaining Constru. 阅读全文
posted @ 2013-09-05 22:38 pengisgood 阅读(9585) 评论(2) 推荐(1) 编辑
摘要: 原文地址:http://tutorials.jenkov.com/java-reflection/classes.html===========================================================================================在运行时,你可以用Java反射检查Java类。当你使用反射时,你经常做的第一件事是检查类。从类中你可以获取下列相关信息:Class NameClass Modifies (public, private, synchronized etc.)Package InfoSuperclassImple 阅读全文
posted @ 2013-09-05 13:15 pengisgood 阅读(8536) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://tutorials.jenkov.com/java-reflection/dynamic-class-loading-reloading.html博主最近比较忙,争取每周翻译四篇。等不急的请移步原文网页。========================================================================================目录 这是一个本教程到目前为止涵盖的主题列表: Java反射——引言Java反射——Class对象Java反射——构造函数Java反射——字段Java反射——方法Java反射——Getter和.. 阅读全文
posted @ 2013-09-04 21:05 pengisgood 阅读(1802) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://tutorials.jenkov.com/java-reflection/dynamic-proxies.html博主最近比较忙,争取每周翻译四篇。等不急的请移步原文网页。========================================================================================目录 这是一个本教程到目前为止涵盖的主题列表: Java反射——引言Java反射——Class对象Java反射——构造函数Java反射——字段Java反射——方法Java反射——Getter和SetterJava反射——私有.. 阅读全文
posted @ 2013-09-04 21:05 pengisgood 阅读(1661) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://tutorials.jenkov.com/java-reflection/index.html*By Jakob Jenkov Java的反射机制使得它可以在运行时检查类、接口、字段、方法,而在编译时并不不知道它们的名称。也可以通过反射实例化新的对象,调用方法,get/set字段的值。 Java的反射机制非常强大而且非常有用。对实例而言,在运行时可以映射对象到数据库中的表,就和Butterfly Persistence做的一样。或者,在运行时将脚本中的语句映射到真实对象上的方法调用,就和Butterfly Container在解析它的配置脚本时做的一样。 在互联网... 阅读全文
posted @ 2013-09-03 20:30 pengisgood 阅读(4148) 评论(0) 推荐(1) 编辑
摘要: BackgroundRecently, I find that we need to type some very long gradle commands to run build, check, test, etc. It's very annoying, isn't it?IdeaCan I write a script to run the gradle commands? Is that easy? If so, I only need to type 2 or 3 charactors(like "go" or "go 1") 阅读全文
posted @ 2013-08-29 16:55 pengisgood 阅读(461) 评论(0) 推荐(0) 编辑
摘要: Just sharing what I have learned about postgres recently. Here is a part of basic commands you may need. Enjoy it! Before try the following commands, please ensure you are followed the introductions on github:https://github.com/thoughtworks/vagrant-postgresql.1. boot up a database by virtualBox a... 阅读全文
posted @ 2013-07-31 10:01 pengisgood 阅读(351) 评论(0) 推荐(0) 编辑
摘要: RT,从今天开始,准备养成写博客的习惯。 一是对学习的成果进行总结 二是检验自己是否真的弄懂某一个问题 三是分享出来与大家共勉。从此开启我的程序人生之路吧! 阅读全文
posted @ 2013-06-21 12:24 pengisgood 阅读(217) 评论(2) 推荐(0) 编辑