Category : Java译文
Java反射12-动态加载和重加载类
The ClassLoader The ClassLoader Hierarchy Class Loading Dynamic Class Loading Read more
Java反射11-动态代理
Creating Proxies InvocationHandler’s Known Use Cases Database Connection and Tran... Read more
Java反射10-数组
java.lang.reflect.Array Creating Arrays Accessing Arrays Obtaining the Class Obje... Read more
Java反射9-泛型
The Generics Reflection Rule of Thumb Generic Method Return Types Generic Method Parameter... Read more
Java反射8-注解
What are Java Annotations? Class Annotations Method Annotations Parameter Annotat... Read more
Java反射7-私有成员变量域和方法
Accessing Private Fields Accessing Private Methods 获取私有的成员变量域和方法也是可能的。这甚至不是那么的困难。在单元测... Read more
Java反射6-setter和getter
使用Java反射使得你能在程序运行时获取到类的方法。这就使得我们可以获取类中定义的getter和setter方法。你不能准确的获取getter和setter方法,但是遍历所有的方法来确定是不是getter和setter。... Read more
Java反射5-方法
Obtaining Method Objects Method Parameters and Return Types Invoking Methods using Method ... Read more
Java反射4-成员变量
Obtaining Field Objects Field Name Field Type Getting and Setting Field Values Read more