Sun Java Solaris Communities My SDN Account Join SDN
 
Books & Authors

Book Excerpt: Java Reflection in Action

 
October 2005  

Book Index

Book Cover: Head First Java, 2nd Edition The Sun Developer Network is pleased to present a chapter from Java Reflection in Action, published by Manning Publications in October 2004.
About the Book

Java Reflection in Action shows you that reflection isn't hard to do. The authors, a father-and-son team, start from the basics and carefully build a complete understanding of the subject. Their book introduces you to the reflective way of thinking. And it tackles useful and common development tasks, in each case showing you the best-practice reflective solutions that replace the usual hard-coded ones.

You will learn the right way to use reflection to build flexible applications so that you can nimbly respond to your customers' future needs. Master reflection and you'll add a versatile and powerful tool to your developer's toolbox.

About the Chapter

Chapter 4, "Using Java's Dynamic Proxy" (PDF), shows you how to do the following:

  • Use java.lang.reflect.Proxy
  • Use a proxy to implement decorators
  • Chain proxies
  • Learn the pitfalls of using Proxy

Ordering Information

Amazon.com

Manning Publications

About the Authors

Ira R. Forman is a computer scientist at IBM. He has worked on reflection since the early 1990s, when he developed IBM's SOM Metaclass Framework. He lives in Austin, Texas.

Nate Forman works for Ticom Geomatics, where he uses reflection to solve day-to-day problems. He lives in Austin, Texas.

More Information
Rate and Review
Tell us what you think of the content of this page.
Excellent   Good   Fair   Poor  
Comments:
Your email address (no reply is possible without an address):
Sun Privacy Policy

Note: We are not able to respond to all submitted comments.