![]() ![]() For example, reflection is defined as "the ability of a running program to examine itself and its software environment, and to change what it does depending on what it finds" (p. ![]() These chapters provide detailed coverage of the most important reflection APIs and focus on constructing instances of Java classes and introspecting method and field information.Įarly pages of Java Reflection in Action provide nice reflection-oriented definitions. Reading these three chapters alone provides the Java developer with the basics of Java reflection, including the advantages and some pitfalls of using reflection. The contents of these three chapters are what most people probably expect in a book on Java reflection. It's a quick read and one can understand the basics of Java reflection after reading only the first three chapters.Ĭhapter One ("A few basics"), Chapter Two ("Accessing fields reflectively"), and Chapter Three ("Dynamic loading and reflective construction") cover the basics of Java reflection. It consists of ten chapters and is under 300 pages long. Java Reflection in Action is written by the father/son team of Ira R. For example, I have found reflection to be useful in writing Groovy scripts to manage Java application development. However, it is probably true that many of us could use reflection to good effect in even more ways. Java reflection is a topic that most Java developers use on a daily basis, either directly or indirectly via popular frameworks and libraries that make use of reflection. Given this relative timing, it's obvious that where this book suffers is in coverage of reflection-related features made available after the release of JDK 1.4. The book was written when JDK 1.4 was the commonly used release of Java and J2SE 5 was well on its way ( released late September 2004). ![]() In general, age is the common theme of most of its weaknesses, but I was surprised at how relevant its information still is. In this post, I review this book and cover its strengths and its weaknesses. The book Java Reflection in Action was published in 2004, but remains largely applicable eight years later. ![]()
0 Comments
Leave a Reply. |