- 博客(5)
- 收藏
- 关注
原创 Java Ant Tip: Set Proxy
Way1: In a target of a build.xml script Way2: export ANT_OPTS="-Dhttp.proxyHost=xxx -Dhttp.proxyPort=xx"
2010-04-22 15:04:00 556
转载 Java经典反射实例
Java提供了一套机制来动态执行方法和构造方法,以及数组操作等,这套机制就叫——反射。反射机制是如今很多流行框架的实现基础,其中包括Spring、Hibernate等。原理性的问题不是本文的重点,接下来让我们在实例中学习这套精彩的机制。1. 得到某个对象的属性Java代码 public Object getProperty(Object owner, String fieldNam
2008-11-10 18:59:00 1062
原创 Java compile-time vs. run-time
See this class:import org.apache.log4j.Logger;public class A {}what will happen if we do not set the log4j.jar into classpath at compile-time and build-time respectively?Answer:Compile-time: FAILRun-t
2008-11-10 16:18:00 612
原创 Java Enum & Its anti-compile
Here is a Enum class:public enum Season{ Spring, Summer, Autumn, Winter}If we anti-compile it, the source code will bepublic final class Season extends Enum{ public static final Season
2008-11-10 12:34:00 527
翻译 JAD作为Eclipse反编译插件
English article souce: http://www.devx.com/Java/Article/22657/1954
2008-11-04 15:25:00 233
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人